Collecting syslog into OpenSearch

Syslog from network devices and Linux hosts can reach OpenSearch through Logstash or a collector in front of Data Prepper. The design choices that matter are transport, parsing, timestamps and retention per device class.

On this page

Why syslog collection into OpenSearch needs a plan before the first device connects

A team with firewalls, switches and Linux servers all sending syslog to a shared address often ends up with a pile of text that nobody can search when an incident happens. OpenSearch can receive syslog through Logstash syslog inputs or through a collector placed in front of Data Prepper, and most of the work lies in parsing, timestamps and retention. Devices disagree about message formats, clocks drift between sites, and a single retention setting rarely fits a firewall log and a web server log equally well. Teams that connect devices first and design later usually end up re-indexing data they meant to keep.

The need usually comes from three directions. Security staff want to investigate events across network devices and Linux hosts in one place. Security Analytics includes Linux and network log types for detection on collected logs, so the parsed fields have to match what those types expect or detections will quietly miss events. Compliance owners need to show that log records are kept for a defined period and can be retrieved, which makes retention a per-device-class decision rather than a cluster default. The OpenSearch Logstash documentation lists TCP, UDP and syslog among its built-in input plugins, so the receiving side is the easy part to choose. Confirm with your own security and compliance teams which fields and retention periods they require before writing any parser.

Before the first device is pointed at the platform, settle the device classes, the expected message volume per class, the transport each device supports (UDP, TCP or TLS-wrapped syslog where the device offers it), and the time source each device uses. Decide which collector receives each class and who owns the parser rules. Set up a test pipeline with one device of each class and check that the timestamp, host and facility fields land where you expect. Changing these choices after months of ingestion is far more expensive than making them in a single test week, so plan the sequence before traffic starts.

Logstash syslog input or a collector in front of Data Prepper

Logstash handles the listener, parsing and delivery in one process, which suits a central collection tier that already receives device traffic on known ports. Its pipeline has input, filter and output phases, and its built-in syslog and TCP or UDP input plugins accept messages directly from network devices and Linux hosts without a separate agent. Filters such as grok and date handle header parsing and timestamp normalization, and an OpenSearch output plugin writes events to the cluster. The trade-off is that Logstash runs on the collection tier and is heavier than an edge agent, so it fits best where a few hosts receive most of the traffic.

  • Protocol listeners: Use the syslog input for standard framing and the TCP or UDP inputs for devices that send raw streams.
  • Parsing filters: Grok patterns and date filters turn vendor-specific messages into fields and set the event timestamp.
  • Buffering: Logstash uses an in-memory queue by default, and persistent queues on disk are an option that the team must size and monitor.
  • Footprint: Logstash needs a JVM and more memory than an edge agent, so it is better placed on collectors than on each device or host.
  • Team ownership: The team owns grok patterns, dead-letter handling, pipeline restarts and the listener's exposure to the network.

Before committing, confirm the current syslog input options, queue settings and OpenSearch output parameters in the Logstash documentation for your version.

Configuration options and when each fits

This table compares four ways to get syslog into OpenSearch: a Logstash TCP listener, a Logstash UDP listener, a Fluent Bit agent on Linux hosts, and a Data Prepper pipeline. Read each row against your device mix, since network gear and Linux servers often need different listeners. The main takeaway is that the transport decision matters as much as the parser, so confirm delivery behavior for each source before you commit.

OptionTransport and listenerBest fitMain trade-offWhat to confirm
Logstash syslog input over TCPTCP listener in a Logstash pipeline, sending to OpenSearch through the output phaseDevices and servers that can hold a TCP session to a fixed collector and send to a known portEach sender must support TCP syslog, and the collector needs capacity planning for many open connectionsWhich devices can send over TCP, the port you will reserve, and how TLS or access control applies on your network
Logstash UDP inputUDP listener in a Logstash pipeline; UDP carries no sessionOlder network gear that can only send UDP syslogUDP does not provide delivery guarantees, so messages lost in transit or during collector restarts cannot be recovered from the senderWhether the device can send TCP instead, and how your team will detect dropped messages during testing
Fluent Bit agent on Linux hostsAgent installed on each Linux host reading local log sources and forwarding to a downstream destinationLinux servers where you want collection and light processing on the host itselfAdds an agent to every host to install, configure and upgrade, and does not cover network devices that cannot run itSupported Linux distributions in your fleet, the output path into your pipeline, and who owns agent upgrades
Data Prepper pipelineOpenSearch's own ingestion pipeline, placed in front of the cluster and fed by a collector you chooseTeams already running OpenSearch ingestion tooling who want parsing and routing in one OpenSearch-native componentParsing coverage for specific syslog formats depends on the pipeline you write, so more of the work falls to your teamWhich syslog formats your sources emit, whether a collector sits in front of it, and how parsed fields map to your index layout

How syslog moves from devices to OpenSearch indices

The flow starts at network devices and Linux hosts, which send syslog over the network to a collector tier. That tier sits behind the trust boundary: devices stay on their own network, and only the collectors listen on the path into the platform. Logstash syslog inputs or a Fluent Bit collector hand events to parsing and timestamp normalization, then Logstash or Data Prepper writes them to OpenSearch data streams. Dashboards and Security Analytics read from those streams. Check the boundary crossing first, then confirm that timestamps are normalized before events reach the index.

Syslog path from devices through the collection tier into OpenSearch data streams.

How to set up syslog collection step by step

This sequence takes network device and Linux syslog from listener to searchable OpenSearch indices, with a check at each stage so that parsing, time handling and retention are proven before the platform carries real volume.

  1. Confirm the cluster, roles and capacity baseline

    The platform team confirms that the OpenSearch cluster is healthy and that its node roles match the intended design, with dedicated cluster manager nodes and replicas placed on separate nodes where the cluster docs recommend it. Ask the vendor or your own environment team to confirm the version you plan to run, the supported install method (Docker, Helm, the Kubernetes Operator, packages or tarball) and where the collector hosts will sit on the network. Done means the cluster reports a green status, you can write a test document to a scratch index from the collector subnet, and the owners of each node role are named.

  2. Pick a transport for each device class

    Group sources by how they send logs: network switches, firewalls and routers that emit syslog over UDP or TCP, and Linux hosts that may already run a forwarder such as Fluent Bit or rsyslog. Choose Logstash syslog or TCP/UDP inputs for devices that cannot run an agent, and a forwarder in front of Data Prepper for hosts you control. Record the transport, port, message format (RFC 3164 or RFC 5424, as your devices actually emit) and whether delivery must survive a collector restart. Done means every device class has one written transport decision and a named owner who confirmed the format from a real sample message.

  3. Create listener endpoints and firewall rules

    Open the listener ports on the collector hosts, bind them to the interfaces you intend, and restrict source addresses to the device subnets. Apply the same rules to any TLS or certificate requirement you have for TCP transport, and keep the collectors inside the segment where your security policy places log infrastructure. Test reachability from one device per class using a short send command, and confirm the packet or connection arrives at the listener and nowhere else. Done means each listener accepts a test message from its intended source and the firewall log shows that blocked sources are dropped.

  4. Configure parsing filters per source

    Write one pipeline branch per device class in Logstash or the collector configuration, with a grok or dissect filter for each message layout and a conditional so that a firewall message never runs through a Linux auth parser. Add tags for unparsed messages so they land in a review index instead of being discarded. Keep the configuration in version control and load it with the pipeline syntax check before deployment. Done means a sample message from each device class produces the expected named fields, and unparsed messages carry a tag that you can query.

  5. Validate timestamps and time zones with test messages

    Send known test messages with a fixed timestamp from each device class and compare the indexed @timestamp with the value you sent, paying attention to devices that omit the year, omit the time zone or report local time. Confirm that the NTP servers on devices and collector hosts agree, because a skew of even a few seconds will misorder events during investigations. Set the date parsing to use the device's declared zone or a documented default, and record that default for each class. Done means every test message indexes at the correct instant, and a document from a device with no zone information is flagged with the zone assumption used.

  6. Set index or data stream naming per device class

    Create an index template or data stream definition for each device class, such as one stream for network devices and another for Linux hosts, so that mappings and retention can differ between them. Use a consistent naming pattern that includes the class and the environment, and map the fields you query most (host, facility, severity, source address) as keyword or the matching type. Ask your team to confirm whether the field mappings must follow a common schema for your SIEM use. Done means the test messages land in the correct stream and the mapping shows the expected field types with no dynamic mapping surprises.

  7. Apply retention policy by device class

    Attach an Index State Management policy to each stream so that retention reflects the class: a firewall or authentication stream may need to be kept longer than a verbose debug stream, and the period is set by your own legal and audit requirements, not by the platform. Define the hot, warm and deletion transitions explicitly and confirm that the policy is attached to newly created backing indices. Record who approves each retention period. Done means the policy shows as attached to every stream, a test index advances through the states you defined, and the approved retention periods are written down.

  8. Verify with sample searches and Security Analytics log types

    Run saved searches for known test events across each stream, confirming that fields are populated and that the time filter returns the messages you sent. Then check whether the device class maps to a Security Analytics log type, such as the Linux or network log types the project documents, and load a sample event to see whether the relevant detectors fire. Document any device class that has no matching log type so that the gap is recorded rather than assumed away. Done means each saved search returns its test events, and the Security Analytics check results are recorded per device class with any gaps listed.

Parsing formats and timestamps that break dashboards

Timestamps and time zones cause most of the misordered events that teams see after syslog reaches OpenSearch. Syslog senders differ in how they format the time, whether they include a year, whether they include a time zone offset, and whether they send local time or UTC. A firewall may stamp events in its configured local zone, a Linux host may use its system zone, and a relay in between may re-stamp messages with the time it received them. The ingest pipeline needs an explicit rule for each device class that says which zone the source uses, which field holds the event time, and which field holds the time of receipt. Confirm these settings with each vendor and with the host configuration in your own environment, not from memory of defaults.

The Logstash filter phase is where the team parses raw lines into named fields, normalizes timestamps into one format, and adds fields such as device class and source site. Filters run in order, so a grok or dissect pattern that matches the wrong vendor format can silently leave the event unparsed or put the wrong value in the timestamp field. Build a test set from real samples captured from each device class, including messages with unusual characters, multi-line output and vendor-specific severity codes. Run that set through the pipeline and check the resulting @timestamp values, the parse failure tag count and the field names before any retention policy is applied. Keep the samples, since they become the regression test when a vendor changes its output.

Parsed fields also decide whether detections work at all. Security Analytics matches logs against rules for specific log types, so the field names your pipeline produces must line up with what those log types expect. The team must confirm which Security Analytics log types, including the Linux and network types, match the fields in each device class, and where they do not, decide whether to rename fields or accept that some detections will not fire. Check this against the supported log types reference before retention is set, because retention only makes sense for data that the team can actually search and detect on.

Setting retention by device class

Each device class produces a different volume of logs and answers different investigation questions, so each needs its own index or data stream and its own retention rule. The retention periods themselves must come from your organization's policy, not from DeployOpen or OpenSearch defaults, so confirm them with compliance and security owners before you configure anything.

Firewalls

Firewall logs carry allow and deny decisions, NAT translations and threat events, and they are often the first evidence in an incident. Give them a dedicated data stream so their high volume does not slow down other sources. Confirm with your security team how far back they must query for investigations and whether any regulator names a minimum period for network access records. Check that the retention rule covers the rollover and deletion of every backing index, not only the active one.

Switches and routers

Switch and router logs record interface state changes, authentication events on management ports and configuration changes. They are usually lower in volume than firewall logs but matter for outage analysis and for showing who changed network configuration. Ask the network team which events they actually use, then drop noisy informational messages at the collector instead of storing them. Set retention from the change-management and audit rules that apply to network infrastructure.

Linux servers

Linux hosts send authentication, kernel, service and sudo messages that support both operations and security review. Group them by environment or business owner so that a retention change for one group does not affect others. Confirm which hosts fall under production audit rules and which are development systems with shorter needs. Keep parsed timestamps consistent across hosts, since clock drift makes cross-host timelines unreliable during an investigation.

Authentication hosts

Directory, VPN and authentication servers produce the records that show who signed in, from where and whether access was granted. Store them separately with the longest retention in the platform, and restrict read access with OpenSearch roles because these logs contain personal data. Confirm the period with your identity governance and legal owners, and check whether any access reviews or regulatory audits require records for a set number of years.

OpenSearch security docs

Other sources and catch-all

Every platform has sources that fit no class, such as appliances, IoT devices or vendor agents. Route them to a catch-all data stream with a conservative default so unexpected sources are still stored and visible. Review the catch-all volume regularly, because unclassified sources tend to grow quietly. Move a source into its own class once its owner and retention requirement are known.

Questions teams ask before syslog collection goes live

What drives the cost and effort of syslog collection?

The biggest drivers are the number of device classes, how many distinct log formats they emit, and how much parsing each format needs before the events are useful. Event volume matters too, because it sets the size of the collectors, the Logstash or Data Prepper capacity, and the OpenSearch storage and retention budget. Costs fall into one-time work (design, device configuration, parser development, testing) and recurring work (new device onboarding, parser maintenance, cluster capacity and upgrades). When you request a quote, ask for the device classes in scope, the expected event rate per class, the parsing depth required, and the retention period for each class, since each of these changes the written scope.

How long does a first working syslog pipeline take?

The duration depends mainly on how many device classes you start with and how hard their messages are to parse. A pipeline that receives standard Linux syslog into one index pattern is much shorter to stand up than one that must parse firewall, switch and load balancer formats with different timestamp rules. Access to devices, change approvals and the availability of an OpenSearch cluster with the right roles often take longer than the pipeline itself. Ask any provider, including DeployOpen, to break the timeline into device onboarding, parser work, load testing and cutover, and to tie each phase to written acceptance criteria before work starts.

What does our team need to provide for the work?

Most delays come from missing inputs, so prepare these before the project starts:

  • Access to a test device per class, with permission to change its syslog forwarding settings
  • Network change approvals for the source addresses, ports and protocols (TCP or UDP) used to reach the collectors
  • Representative log samples, including unusual messages and rotated or truncated lines
  • A written retention policy per device class, with the reason for each period
  • An OpenSearch cluster or environment, plus credentials or roles scoped to the indices that will receive the logs

The samples are the most important item, because parser design depends on the actual formats your devices emit.

Can our internal team build and run syslog collection without a partner?

Yes, if your team has engineers who already operate Logstash or Data Prepper, understand time zones and timestamp handling, and can manage device configuration across network and server teams. The work is not large in concept, but it is detail heavy. Teams that succeed usually confirm the input plugin behavior with their own samples, document parser rules, and set up retention through index lifecycle policies before the first production source is connected. An external partner adds value mainly when the team lacks capacity, has many device classes with unfamiliar formats, or needs documented controls for a compliance review. Compare both options against the same written scope.

Does OpenSearch licensing add cost to syslog collection?

The OpenSearch FAQ states that all software in the OpenSearch project is released under the Apache License, Version 2.0, and does not describe any paid edition. Your licensing cost for the search engine and Dashboards is therefore zero, but you still pay for infrastructure, storage, staff time and any external services you choose. Check the license of each collector and pipeline component you add, because the syslog path may use tools with different terms. Ask any provider to state in writing which components they recommend and their license, so procurement can review them before the build starts.

How does syslog collection change when we add Kubernetes or web logs later?

The core pipeline stays the same, but the number of sources, parsers and index layouts grows. Kubernetes logs usually arrive through a node-level collector and carry metadata such as namespace and pod, while web server access logs need their own parser and field mapping. Plan index or data stream naming, retention and access roles so new sources do not share indices with network logs unless that is intended. Adding these sources later is simpler if the first deployment already separates device classes, uses consistent timestamp fields and keeps configuration in version control. Confirm the collector choice for each source early, since a single collector may not fit every input type.

What should we verify before the first production source goes live?

Verify that each device class lands in the expected index with the correct timestamp, that messages are not dropped under peak load, and that the fields used for searches and alerts are populated. Test access controls too: only the roles that need network logs should see them. Confirm retention by checking that old indices move or delete on schedule, and record the test results with the configuration so an auditor or security reviewer can trace them. Ask for these checks to be listed as acceptance criteria in the written scope.

Keeping the pipeline healthy after launch

The first thing to watch after launch is whether the syslog listeners are still receiving and forwarding messages. Monitor message counts per listener and per device class against a baseline taken during the pilot, and alert when a device goes silent or when Logstash or the collector reports dropped or rejected events. Track the queue and backpressure state of the pipeline as well, because a full queue is often the first sign that OpenSearch is slowing ingest. Confirm with your collector's documentation which internal metrics it exposes and how to scrape them, since the exact metric names depend on the component you chose.

Parsing rules need ongoing review because firmware updates change message formats. Watch the count of events that land in a parse-failure tag or without the expected fields, and review a sample of them after every device firmware rollout. A failed grok or dissect pattern usually shows up as a rise in unparsed events from one device class, so keep a test set of raw messages per vendor and run it through the pipeline before changing rules. On the OpenSearch side, plan upgrades on the release cadence: OpenSearch targets a new minor version about every eight weeks, and each version stays in maintenance with security patches for a defined period. Test the collector and OpenSearch upgrades in a non-production cluster first, and confirm the support window for your version on the OpenSearch releases page.

Onboarding is where the parsing and retention rules either hold or drift. Keep a written record for each device class that names the listener port, the parsing rule, the index or data stream, the retention period and the owner, and make that record a prerequisite before a new source is switched on. Retention should be set per device class in index lifecycle policies, not per device, so a new firewall inherits the same rules as the existing fleet. Ask the team that operates the pipeline to review each onboarding change, and test that the new source produces the expected fields in Dashboards before it is added to alerting. This keeps the pipeline consistent as the number of sources grows.

How DeployOpen scopes and delivers syslog collection

DeployOpen plans, implements, tests, documents and supports self-hosted open-source platforms inside your own infrastructure, so syslog collection into OpenSearch runs in your cloud accounts, data centers or air-gapped network. Engagements are fixed-scope, with scope and deliverables agreed in writing before work starts.

How we scope

  • Inventory the device classes, sources and expected message volumes that will send syslog into the cluster
  • Agree in writing which parsers, timestamp rules and retention periods per device class are in scope
  • Confirm the collector choice, Logstash syslog inputs or Fluent Bit in front of Data Prepper, against your network and ports
  • Ask for the scope, deliverables and timeline in writing, since engagements are fixed-scope and priced from that document

How we build

  • Configure syslog listeners over TCP or UDP and test them against representative devices and Linux hosts
  • Write and test parsing and timestamp handling so events keep their original event time and time zone
  • Apply index or data stream layout and retention settings for each device class, tied to your stated policy
  • Set TLS and access controls on ingestion endpoints and review the Security plugin roles that can read the data

How we hand over

  • Document collector configuration, parser rules, index layout and retention settings in a form your team can maintain
  • Run verification checks with your team, including message counts, dropped event checks and sample searches
  • Provide a runbook covering device onboarding, parser changes and how to troubleshoot missing or delayed messages
  • Confirm with your team who owns each device class going forward, so that ownership is recorded at handover

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover
  • Plan OpenSearch version upgrades and collector updates against the maintenance status of the versions you run
  • Retest parsing and ingestion when new device classes, firmware or log formats are added to the environment
  • Ask any support provider to confirm response expectations in writing before the retainer starts

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.