Streaming Medplum logs and AuditEvents to Splunk, Datadog or Sumo Logic

Self-hosted Medplum writes logs and AuditEvent resources to STDOUT, so forwarding them to a SIEM depends on the logAuditEvents setting, the collector you run and how you correlate request and trace IDs. This page covers the supported method, setup sequence and failure points.

On this page

How Medplum log streaming to Splunk, Datadog or Sumo Logic works

The supported method for getting Medplum access and audit records into a SIEM is STDOUT streaming: the self-hosted Medplum server writes log entries and AuditEvent resources to standard output, and a collector your team runs reads that output and forwards it. Capturing AuditEvents requires the logAuditEvents server setting, so a compliance or security team should confirm that setting is on before assuming audit records exist. Medplum's log streaming documentation names SumoLogic, Datadog and Splunk as example tools, which means those products are illustrations of the pattern rather than a list of tested integrations. The collector, its agent configuration, its parsing rules and its retention are the team's own responsibility.

Login attempts, troubleshooting information and every RESTful FHIR interaction are recorded as AuditEvent resources, so the first decision is which of these your SIEM must hold and for how long. Confirm with your compliance owner whether login events, read operations and search operations each need to be indexed, because read and search traffic can be high volume. Decide where the collector runs relative to the Medplum server, how it authenticates to your SIEM, and how it handles restarts so that no lines are lost or duplicated during a container or pod replacement. Ask your SIEM vendor how it parses JSON log lines before you write detection rules against them.

Batch requests and GraphQL queries need extra care when you build searches. According to Medplum's log streaming documentation, each read or search operation inside a batch or GraphQL query produces its own log line, and all of those lines share the same request ID or trace ID. Correlating on that shared ID lets an analyst reconstruct one client call, but it also means a single request can produce many events, which affects both alert volume and storage cost. Test a representative batch and a representative GraphQL query in a non-production environment, then confirm the resulting lines and IDs in your SIEM before you set alert thresholds.

What you need before forwarding Medplum logs

Log forwarding depends on four things lining up: the Medplum version and deployment path you run, access to the server configuration that controls what gets written, a destination platform with a working ingest path, and a clear owner for how long the logs are kept. Settle these before touching the shipper so the pipeline is built against your real environment.

Confirm your Medplum version

Start by recording the exact Medplum server version you run, not the version you remember installing. Check it against the releases page and the upgrade guide, because log output and setting names can change between minor versions. Medplum ships patch releases weekly, so a deployment that has drifted may behave differently from the docs you read. Write the version into the change ticket so the pipeline and the server are tested together.

Medplum releases

Identify your deployment path

Medplum self-hosting supports AWS through CDK and CloudFormation, Ubuntu via an APT repository, Docker, Kubernetes, DigitalOcean, and building from source. The path decides where server output lands. On AWS, the container or instance logs feed CloudWatch. On Kubernetes or Docker, a node-level agent usually collects STDOUT. On Ubuntu or source builds, you may read the process output through systemd or a file. Document which path applies before choosing a shipper.

Self-hosting docs

Access to server configuration

Enabling AuditEvent capture requires the logAuditEvents server setting, so someone must be able to change the server configuration and restart the service. Confirm who holds that access, how changes are reviewed, and whether a non-production environment exists to test the setting first. Without this access, the pipeline can be built but will receive no login or FHIR interaction records to forward.

Target platform and ingest path

Confirm you have an account on Splunk, Datadog or Sumo Logic with permission to create an ingest source, index or log collector and to issue the credential the shipper will use. Find out whether your organization has a standard collector, such as an agent or HTTP endpoint, that the security team already approves. The ingest method determines the parser and the field names you will query for AuditEvents, so check it before the server is configured.

Network routes to the platform

The log shipper must reach the destination over a path your network controls allow. Map the route from each Medplum node or log group to the ingest endpoint, including egress rules, proxies, DNS and any private link to the platform. In regulated environments, confirm that traffic carrying audit records stays on approved paths and is encrypted in transit. A blocked route often shows up as silently missing events, so test delivery with a known login before relying on it.

Ownership of log retention

Decide who owns retention for Medplum logs and AuditEvents before the pipeline goes live. Security teams usually need audit records kept for a period set by their policy, and the SIEM, the cloud log store and any local copies may each apply a different default. Record the retention period, the owner of each store, and who can export or delete records. Your compliance lead should approve this decision, because Medplum's own compliance documentation states that compliance is a shared responsibility between Medplum and its customers.

Compliance docs

Configuring logAuditEvents and STDOUT forwarding

This sequence turns on AuditEvent capture in a self-hosted Medplum server, confirms that the server writes its logs to STDOUT, and connects a collector so login and FHIR access records reach your SIEM or log platform. Each step ends with a check you can run before moving on.

  1. Confirm the server version and log access

    Before changing anything, record the Medplum server version you run and confirm your team can read the process output from the host, container or pod that runs the server. The log streaming documentation describes STDOUT output, so the server process must be started in a way that keeps its output available to a collector. Ask your platform team which runtime owns the process (systemd, Docker, Kubernetes or a cloud service) and where its output currently goes. Done when someone on the team can show the current server log output on the host or in the container runtime.

  2. Enable the logAuditEvents server setting

    In the server configuration file or environment used by your deployment, set the logAuditEvents option described in the Medplum log streaming documentation. Copy the exact key name and value format from that page rather than from memory or a blog post, because the key must match the server release you run. Make the change in your version-controlled configuration where possible, then restart the server through your normal deployment path. Done when the server starts cleanly after the restart and the change is recorded in your change history.

  3. Verify JSON log lines on STDOUT

    Tail the server output and confirm that entries are written as JSON log lines to STDOUT after the restart. Check that each line has the fields your collector will parse, such as timestamp, level and message, and note the exact field names so your parsing rules match them. If the output is plain text or mixed with unrelated process messages, resolve that before continuing, since the collector will need consistent structure. Done when a sample of recent lines parses as valid JSON in a local tool such as jq.

  4. Run a test login and a sample FHIR read

    Sign in through a test user in a non-production project, then run one simple FHIR read, for example a Patient read using a test record. Use a test account and synthetic data, not a real patient or a shared administrator login, so the resulting records are easy to identify. Note the time of each action so you can match it to the log entries. Done when you have a login attempt and a read operation on record and you know the test user and record ID you used.

  5. Find the login and read AuditEvents

    Search the STDOUT output for the AuditEvent resources created by your test login and FHIR read, using the timestamp and test user identifiers from the previous step. Confirm that both a login attempt and the read are recorded as AuditEvent resources, and that the entries include the user, the resource type and the outcome. If the login appears but the read does not, review the logAuditEvents setting and the server release notes for the version you run. Done when both events are present in the output with the expected details.

  6. Point the collector at STDOUT

    Configure your collector (the Splunk Universal Forwarder or HTTP Event Collector, the Datadog Agent, or the Sumo Logic collector, depending on your platform) to read the Medplum server output. Confirm the exact collection method, source type and index or category settings with your platform's documentation and your own environment, since these vary by deployment. Use the same source or sourcetype name for all Medplum output so later searches are simple. Done when the collector reports that it is reading the Medplum source and no parsing errors appear in its own logs.

  7. Check the test events in the target platform

    In Splunk, Datadog or Sumo Logic, search for the test login and the test read using the same timestamp and test user identifiers. Confirm that the AuditEvent fields are parsed into searchable attributes, not stored as a single unparsed message. Run the same search again after a short wait to confirm events keep arriving rather than appearing once. Done when the login attempt and the read AuditEvent are both searchable in the target platform with the expected fields, and you have saved the search for later use.

Choosing between Splunk, Datadog, Sumo Logic and CloudWatch

Splunk teams typically run a forwarder on each host or container that runs the Medplum server, reading the process output and sending it to an indexer tier. The Medplum server writes AuditEvent records and troubleshooting lines to STDOUT, so the forwarder must capture container or process output without dropping lines during restarts. Teams usually decide early which index holds AuditEvents, how long it is retained, and who can search it.

  • Collection point: Decide whether the forwarder reads container logs, a log file written by a process supervisor, or a sidecar, and test that restarts do not lose lines.
  • Sourcetype and parsing: Define how JSON fields are extracted so AuditEvent fields such as the request ID and trace ID are searchable without manual field extraction at search time.
  • Index and retention: Separate audit data from troubleshooting output if the two have different retention periods or access groups.
  • Access roles: Restrict who can search identifiable patient data in audit events, since those lines can contain record references.
  • Volume and licensing: Estimate daily ingest from a test environment and confirm how your Splunk license or workload model counts that volume.

Confirm with your Splunk administrator and the forwarder documentation for your version which collection method, parsing settings and license model apply to your environment.

Correlating batch and GraphQL requests with request and trace IDs

A single batch request or GraphQL query on a self-hosted Medplum server does not produce a single log line. Each read or search operation inside the call writes its own entry to STDOUT as the server processes it, and every line from that one call carries the same request ID or trace ID. That shared identifier is what lets a SIEM rebuild the original client call from many operations, so it is the field your forwarding pipeline and search queries must preserve exactly as Medplum writes it.

This matters most in an investigation. When an auditor or privacy officer asks what a particular integration read on a given afternoon, an analyst who filters only on the patient or the user sees fragments. Grouping by the request or trace ID shows which resources a batch bundle or GraphQL query touched together, in what order, and under which identity. Without that grouping, a bundle that returned data for twenty patients looks like twenty unrelated reads. Keep in mind that the ID tells you which operations belonged together, not whether each operation was authorized, so pair it with the AuditEvent records and access policy evidence described elsewhere on this page.

Before you rely on this for an audit, run one batch request and one GraphQL query against a non-production instance with logAuditEvents enabled. Confirm that each operation appears as its own line, that every line shares the expected identifier, and that the identifier survives your log shipper, parser and index in Splunk, Datadog or Sumo Logic. Check the field name your platform assigns after parsing, and confirm whether the identifier is the same for both the request ID and the trace ID in your deployment. Record the test queries and their results as evidence, and repeat the check after each Medplum upgrade or change to your logging pipeline.

How Medplum logs and AuditEvents reach the SIEM

The flow starts with clients and Bots calling the Medplum server, which writes log lines and AuditEvent resources to STDOUT when the logAuditEvents setting is enabled. A log shipper or agent that you run inside your network picks up those lines and forwards them across the trust boundary to Splunk, Datadog, Sumo Logic or CloudWatch. Check that each line carries the request ID or trace ID, since batch and GraphQL calls depend on it to group related reads and searches.

Medplum log and AuditEvent flow from the server to external log platforms.

Mapping Medplum log fields and AuditEvent data to SIEM fields

This table lists the fields your SIEM searches for in Medplum's STDOUT output and shows which points the log streaming docs confirm. The docs confirm three record types, the logAuditEvents requirement and the shared request or trace ID for batch and GraphQL calls, but they do not name most field paths. Treat every field name as unconfirmed until you inspect a sample event from your own instance.

Field to searchWhat the docs confirmCheck on a sample event
Record typeLogin attempts, troubleshooting entries and FHIR interactions recorded as AuditEvent resourcesWhich field separates these types, and whether login lines carry AuditEvent structure
Event typeField name not stated in the log streaming docsField name and values for read, search and create interactions
Actor or userField name not stated in the log streaming docsWhich identifier is logged, such as a user or client reference, and its format
ActionField name not stated in the log streaming docsWhether the FHIR interaction type is a separate field and what values it takes
Resource type and IDFHIR interactions are recorded as AuditEvent resources, which reference the resource acted onJSON path to the resource type and ID in each line
TimestampField name not stated in the log streaming docsField name, time zone and precision, compared with your ingest time
Request or trace IDEach read or search in a batch or GraphQL call logs its own line with the same request or trace IDField name, and confirm all lines from one batch share the same value
logAuditEvents settingRequired before AuditEvents are captured to STDOUTConfirm AuditEvent lines appear after enabling the setting and are absent before

Protecting audit data in transit and at rest

Medplum audit data can carry identifiers, record references and request context that regulators and your own policies treat as sensitive. The controls below cover what leaves your network, how it travels, who can read it and who administers each side. Medplum's compliance documentation describes compliance as a shared responsibility, so the decisions in this section sit with your team.

Limit what leaves the network

AuditEvent resources record who accessed which resource, and some of that context can point at patients. Before enabling streaming, decide which fields, resource types and log lines your SIEM actually needs for detection. Filter or redact at the shipper or pipeline stage rather than assuming the destination will hide sensitive values. Document the field list so your privacy and security reviewers can approve it.

Log streaming docs

Encrypt transport to the SIEM

Log data moving from the Medplum server host to Splunk, Datadog or Sumo Logic crosses your network or the public internet. Require TLS on every shipper connection, verify certificates, and confirm which endpoints your chosen vendor exposes for ingestion. Ask your network team to confirm that no path falls back to unencrypted transport during a shipper restart or a proxy change.

Scope shipper credentials

The forwarder needs only permission to send events to one index, source or pipeline. Create a dedicated token for it, not a personal or administrator token, and store it in your secrets manager. Plan rotation and revocation so that a compromised forwarder host can be cut off without touching the rest of your logging stack.

Set retention and destination access

Audit records are useful only if they survive long enough for investigations and reviews. Agree a retention period with your compliance team, then configure it in the destination rather than relying on default settings. Restrict search and export rights on the audit index to named analysts, and log those access events so that reads of audit data are themselves auditable.

Separate Medplum and log administration

The people who configure Medplum projects, access policies and the logAuditEvents setting should not be the same people who can alter or delete audit data in the SIEM. Assign the log administrator role in the destination to a separate group, and require two-person approval for retention changes. This separation makes it harder for one administrator to change behavior and hide the trail.

Map the shared responsibility split

Medplum's compliance documentation states that compliance is a shared responsibility between Medplum and its customers. On a self-hosted deployment, your team owns the log pipeline, the SIEM tenancy and the access model around it. Write down which controls you operate, which the SIEM vendor provides and which your auditors will expect to see as evidence. Confirm those assignments with your compliance lead and independent assessor before go-live.

Medplum compliance docs

Why Medplum events are missing or unlinked in the SIEM

This table lists the most common gaps between what a self-hosted Medplum server records and what appears in Splunk, Datadog or Sumo Logic, with the likely cause and the general fix for each. Start with the row that matches your symptom, then confirm exact setting names and reload steps in the Medplum log streaming documentation before changing production configuration.

SymptomLikely causeGeneral fix
No AuditEvents appear in the SIEMThe logAuditEvents server setting is not enabled, or the server was not restarted or reloaded after the changeConfirm the setting in your server configuration, apply it, restart the server, then generate a test login and a test FHIR read to check for new entries
Log lines arrive but are not parsed into fieldsThe destination expects a different format than the JSON-style lines the server writes to STDOUT, or no parser or source type is assignedCompare a raw sample line with the destination's parsing rules, then assign a matching source type or pipeline and re-ingest a test sample
Batch or GraphQL reads are logged separately with no shared identifierThe request or trace ID is not carried from the inbound request through each sub-operation, or the search does not group on that fieldSearch on the shared request or trace ID field, confirm the field is extracted as a searchable attribute, and check the Medplum log streaming docs for the exact field names
Gaps appear around restarts, deploys or scaling eventsThe collector or forwarder keeps only in-memory buffers or reads from a single container or instance that was replacedUse a forwarder with local buffering and retry, collect from every server instance, and confirm the log shipper restarts with the server
AWS CloudWatch logs exist but do not reach the SIEMThe subscription filter on the log group is missing or points to the wrong destination, or the IAM role lacks permission to deliver the logsVerify the log group subscription, the destination stream and the role policy, then send a test event and check delivery errors in AWS
Duplicate events appear after a forwarder restartThe collector re-reads files or streams from an old offset, and no checkpoint is storedStore read positions on durable disk, set a checkpoint location, and deduplicate on the AuditEvent ID during searches if the source can replay
Events show the wrong server or environmentMultiple Medplum environments send to one index without a distinguishing fieldTag each source with environment and server name at collection, and filter searches and dashboards on those tags

Questions buyers ask about Medplum log streaming

How much effort does streaming Medplum logs to a SIEM take?

The effort depends mostly on how many destinations you feed, how much parsing each one needs, how many environments you run, and what your retention rules require. A single destination with one environment is a bounded piece of configuration work: the server writes logs and AuditEvents to STDOUT, and the platform or infrastructure team routes that output to the SIEM. Each additional SIEM, each custom parser, each environment such as staging and production, and each retention rule adds review and testing time. Ask any provider for a written plan that lists destinations, environments, parsing scope and retention requirements before agreeing a fixed scope.

Can our own platform team set up Medplum log streaming without a partner?

Yes, for a single destination such as Splunk, Datadog or Sumo Logic, an experienced platform team can usually do the work alone. The core steps are enabling the logAuditEvents server setting, confirming what the server writes to STDOUT, and forwarding that output with the collector your SIEM already uses. The harder parts are usually parsing AuditEvent fields into useful searches, correlating batch and GraphQL requests through shared request or trace IDs, and agreeing retention with compliance. If your team lacks SIEM parsing experience or is short of time, a partner can take that scope in writing.

What do we need to provide for a log streaming project?

You need four things ready before work starts. First, access to the self-hosted Medplum server configuration, including the setting that enables AuditEvent capture and the deployment files for your environments. Second, a SIEM administrator who can create indexes, sources, parsers and access roles in the destination platform. Third, sample traffic from a non-production environment so parsing and field mapping can be tested against real request shapes, including batch and GraphQL calls. Fourth, a documented retention decision for logs and AuditEvents, agreed with your security and compliance owners, because it determines storage size and who can query what.

How long does Medplum log streaming take to set up?

Duration depends on scope: the number of SIEM destinations, the number of environments, how much parsing and dashboard work is included, and how quickly your SIEM administrators can review changes. No general timeline applies, so do not accept one from any provider without a written plan. Ask for a schedule that separates configuration in a non-production environment, sample-traffic testing, parser review, the production change window and a post-change check of event volumes. Also ask which steps depend on your own teams, because those dependencies often set the calendar more than the technical work does.

Do Medplum logs and AuditEvents contain PHI?

They can, and you should confirm exactly what your deployment sends before routing it to any third-party log platform. AuditEvent resources record RESTful FHIR interactions, and troubleshooting output can include identifiers or request details, so whether that data counts as protected health information depends on your configuration and what your users submit. Map each log type to a data classification, decide which fields to mask or drop, and confirm that the destination platform's agreements and hosting location fit your obligations. Check the Medplum compliance documentation on shared responsibility, then confirm the terms of each SIEM vendor with its sales or legal contact.

Will our SIEM show each batch or GraphQL call in a way we can trace?

Yes, for batch requests and GraphQL queries, each read or search operation generates its own log line, and those lines share the same request ID or trace ID. That lets you group the operations that came from one client call. Confirm during testing that your SIEM keeps the shared identifier as a searchable field, because a parser that drops it makes the grouping useless. Also check how your reverse proxy or load balancer passes trace headers, since gaps there can break the chain before the logs reach the server.

What changes when we run Medplum on AWS and send logs to CloudWatch first?

On AWS, the server output can reach CloudWatch first and then be forwarded to your SIEM, which adds a second hop to plan for. Confirm how your deployment ships container or instance output to CloudWatch, which log group and retention period you will use, and how the forwarding subscription is authenticated and monitored. Each hop adds cost in storage and transfer, and each one needs its own access controls and failure alerting. Ask for the forwarding design in writing so your security team can review the path that sensitive log data takes.

Where to confirm the logAuditEvents setting and log format

Confirm the logAuditEvents setting and the exact log format against the Medplum log streaming documentation before you write any SIEM parser. The Medplum log streaming docs describe what the server emits to STDOUT, which login, troubleshooting and FHIR interaction records become AuditEvent resources, and how the server configuration key is named and set. Copy the configuration key from that page into your own server configuration rather than from a colleague's notes or an old ticket, and check the key against the exact version you run.

Pin the version first. Medplum publishes releases frequently, and the Medplum releases page lists the version tags, dates and change notes for each one. Record the running server version in your change record alongside the log configuration, and re-check the log format after every upgrade, because field names, log line structure and AuditEvent content can change between releases. Your upgrade process should include a step that sends a test login and a test FHIR read through the pipeline and compares the output with a known good sample.

Ingest rules belong to your SIEM vendor. Splunk, Datadog and Sumo Logic each have their own documentation for source types, log parsing, field extraction, index or retention settings and the collectors or agents that ship STDOUT. Confirm with the vendor how their platform handles JSON lines, multi-line entries and the request or trace identifiers that tie batch and GraphQL operations together, and agree with your security operations team who owns each rule. Treat the vendor's ingest guidance as the final authority on your platform's settings, and test with sample lines from your own deployment before you enable forwarding for production traffic.

How DeployOpen scopes and delivers Medplum log streaming

DeployOpen plans and delivers log streaming for self-hosted Medplum inside your own infrastructure, from the server's STDOUT output and AuditEvent settings to forwarding into your SIEM or log platform. Each engagement starts with a written scope that names the target platform, the log sources and the evidence your security and compliance teams need to review.

How we scope

  • Confirm which target platform you use (Splunk, Datadog or Sumo Logic) and where its collector or ingest endpoint runs
  • Identify which log sources to stream: login attempts, troubleshooting output and RESTful FHIR AuditEvents
  • Agree in writing whether logAuditEvents is enabled and who approves audit retention and access to the events
  • Engagements are fixed-scope, with deliverables and timelines agreed before work starts

How we build

  • Configure the Medplum server so STDOUT output reaches your forwarder, and confirm each log line is captured without gaps
  • Set up forwarding from your hosting platform, such as CloudWatch on AWS, into the chosen SIEM or log platform
  • Test batch and GraphQL requests to confirm that shared request or trace IDs link every read and search line back to the originating call
  • Document parsing, field mappings, index settings and alert logic so your team can review them against your control set

How we hand over

  • Deliver a configuration record covering server settings, forwarder configuration, pipeline routes and credentials handling
  • Provide test evidence showing AuditEvent capture, request ID correlation and delivery to the target platform
  • Walk your security operations and platform engineering teams through dashboards, searches and the troubleshooting runbook
  • Note the controls this setup supports for your compliance team, while independent auditors make any assessment

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover
  • Revisit the forwarding setup when you plan a Medplum upgrade, since log formats and settings can change between versions
  • Confirm with your team which retention and access rules apply to streamed AuditEvents before changing them
  • Scope any follow-on alert tuning or detection content as a separate written engagement

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.