Join our Newsletter — 33% off our NHI Course
Home› Guides› Graylog Security Guide: Authentication, Inputs, TLS and Exposure…
Guide SOC & Detection Engineering

Graylog Security Guide: Authentication, Inputs, TLS and Exposure Control

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 20 November 2026 16 min read
On this page

A Graylog cluster holds some of the most sensitive data an organisation produces, so the platform itself needs the same hardening as any identity system: a strong root secret, a locked down web interface, encrypted inputs and tight control over who and what can send it data. Graylog is widely used as a self-managed log platform, and many deployments grow from a quick proof of concept into production without anyone revisiting the defaults that were set on day one. This guide walks through the settings in the Graylog server configuration file and the input model that matter most for security, explains why each one matters, and sets out a practical checklist for security and platform teams.

The guide focuses on the self-managed Graylog server. It does not cover Graylog Cloud, which Graylog documents separately, and general SIEM concepts are covered in our SIEM Guide. Where this guide gives advice that goes beyond what Graylog's documentation states, it is labelled as an NHI Mgmt Group recommendation.

This is an independent guide from NHI Mgmt Group, based on Graylog's public documentation as of November 2026. It is not sponsored or reviewed by Graylog. Product features change, so confirm settings against Graylog's current documentation.

Key takeaways

  • The sample graylog.conf ships with password_secret and root_password_sha2 blank, and states that you MUST set both. Treat them as secrets with an owner, a storage location and a rotation plan.
  • The HTTP interface binds to 127.0.0.1:9000 by default and http_enable_tls defaults to false. Exposing the interface beyond localhost without TLS, or without a trusted reverse proxy, is the most common way a lab build becomes an exposed production system.
  • Listener inputs open a port and accept whatever is pushed to them. Every listener is an unauthenticated ingestion point unless you add network controls and TLS.
  • Not every input supports TLS. Graylog's own input table lists several that do not, so placement and network filtering carry the load for those.
  • The backing data stores named in the configuration, the search back end and MongoDB, default to local, unencrypted connection strings. Protect them as part of the Graylog trust boundary.
  • Logs are evidence. Anyone who can write to an input can poison it, and anyone who can administer Graylog can read everything it holds.

Why Graylog needs its own hardening plan

A log platform sits at an awkward point in the security architecture. It receives data from almost every system in the estate, it often holds credentials for pull integrations into cloud services, and it is the place investigators go to reconstruct what happened during an incident. That makes it a high value target for two different reasons: attackers want to read it, because logs leak tokens, user names, internal hostnames and sometimes secrets that applications should never have logged, and attackers want to tamper with it, because removing or flooding evidence slows down detection and response. MITRE ATT&CK tracks the second behaviour as Indicator Removal (T1070).

Graylog itself is also an identity system in miniature. It has a root user, local users, roles, API tokens and a secret used to protect stored passwords. Pull inputs authenticate to external services, which means Graylog holds non-human credentials for those sources. All of that needs the same discipline you would apply to any other system that stores credentials: least privilege, rotation, inventory and monitoring.

The NHI Mgmt Group view is that Graylog should be treated as a tier zero logging asset in the same way many organisations treat their identity provider: separate administration, restricted network paths, and change control on configuration.

Root account and password_secret

The Graylog server configuration file, which Graylog documents at /etc/graylog/server/server.conf on package installs, contains two settings that must be set before the first start.

password_secret is described in the sample configuration with the comment "You MUST set a secret to secure/pepper the stored user passwords here. Use at least 64 characters." In the sample file the value is blank. This secret peppers stored user passwords, so it should be generated from a cryptographically secure random source, stored in your secrets manager rather than in a wiki or a shared runbook, and set identically on every node in a cluster.

root_password_sha2 holds a hash of the password for the built in root user, and the sample comment again says you MUST specify it. The root user name is set by root_username, which defaults to admin. root_email is empty by default.

NHI Mgmt Group recommendations for the root account:

  • Change root_username away from admin so that password spraying against the web interface has to guess the account name as well as the password.
  • Generate a long random root password, store it in a vault with break glass access, and do not use the root account for daily administration. Create named administrator accounts instead.
  • Set root_email to a monitored team mailbox so that account notifications reach someone.
  • Remember that the root password hash lives in a configuration file. Restrict read access on server.conf to the service account and administrators. Graylog's configuration documentation notes that editing the file requires elevated privileges and that the server must be restarted to pick up a change.
  • Plan for rotation. Changing the root password means changing the hash and restarting each node, so schedule it rather than leaving it until an incident forces it.

Web interface binding and TLS

http_bind_address is the network interface used by the Graylog HTTP interface. Its default is 127.0.0.1:9000, which means a fresh install only listens locally. Operators often change this to 0.0.0.0:9000 so that users can reach the interface from their workstations, and that single change is where much exposure starts.

http_publish_uri is the URI the node uses to communicate with other Graylog nodes, and defaults to http://$http_bind_address/. In a cluster, this means node to node traffic follows the same scheme as the web interface unless you change it.

http_enable_tls defaults to false. The sample comment explains that enabling it secures communication with the HTTP interface with TLS "to prevent request forgery". When enabled, http_tls_cert_file points to an X.509 certificate chain in PEM format and http_tls_key_file points to a PKCS#8 private key in PEM format.

If you terminate TLS on a reverse proxy instead, trusted_proxies is a comma separated list of proxies allowed to set the client address with X-Forwarded-For. Leaving it unset, or setting it too widely, affects the accuracy of the client addresses Graylog records for user activity, which matters when you later investigate who did what.

NHI Mgmt Group recommendations:

  • Never expose the Graylog web interface or API directly to the internet. Put it behind a VPN, a zero trust access proxy or an internal load balancer.
  • Enable TLS end to end. Either set http_enable_tls = true on each node with a certificate from your internal certificate authority, or terminate on a reverse proxy and re-encrypt to the nodes. Follow NIST SP 800-52 Rev. 2 for protocol and cipher selection.
  • Set trusted_proxies to the exact addresses of your proxies, not a broad range.
  • Protect the private key file with the same file permissions as server.conf, and track the certificate expiry date in your certificate inventory.

Understanding the input model

Inputs are how data enters Graylog. Graylog's documentation describes them as the entry points that receive log data, separate from streams, which route data, and index sets, which store it. Inputs are created under System > Inputs and can be global, running on all nodes, or local, running on specific nodes. Graylog recommends global inputs unless you need to isolate data to a single node.

The documentation describes four kinds of input:

Input kindHow it worksMain security concern
Listener inputsOpen a port and wait for applications to push data, over TCP or UDP depending on the typeAnyone who can reach the port can send data
Pull inputsConnect to an endpoint or API and retrieve logs, usually authenticating to the sourceGraylog stores credentials for the source
Filtered inputsPull only selected data from an external data lake, using filters such as event type or severityCredentials plus scope of the filter
Generic inputsCover common protocols and formats: Beats, CEF, GELF, Raw/Plaintext and SyslogTypically deployed as listeners, so the listener concern applies

The third column is the NHI Mgmt Group summary of the risk, not a Graylog statement.

Graylog notes that TCP is the more reliable transport because messages are acknowledged at the network level, while UDP offers higher performance without delivery guarantees. For security logging where completeness matters, that reliability is a security property as well as an operational one: a dropped authentication event is a gap in your evidence.

Graylog also suggests running several inputs of the same type to segment traffic, for example to separate departmental logs, which works well behind a load balancer with a reliable protocol such as TCP. Segmentation by input is a useful security pattern because it lets you apply different network rules and different TLS settings per source group.

Securing listener inputs

A listener input is, by design, an open door for data. A syslog or GELF listener accepts messages from any host that can reach it. That has two consequences. First, an attacker inside the network can inject false events, for example to create noise during an intrusion or to plant misleading evidence. Second, if a listener port is reachable from the internet, anyone can fill your indices, drive up storage costs and push real events out of retention.

Graylog's input page does not list port numbers or bind addresses, and says to check each input's own documentation. Whatever ports you choose, NHI Mgmt Group recommends:

  • Bind each listener to an internal interface, never to a public address.
  • Restrict source addresses with host firewalls or security groups so that only known collectors and forwarders can connect.
  • Use local inputs on dedicated ingestion nodes for untrusted or high volume sources, so that a flood does not reach every node.
  • Prefer TCP with TLS over UDP for anything you might need as evidence.
  • Separate inputs by trust level. Domain controllers, identity providers and cloud audit logs deserve their own input with tight source filtering, rather than sharing a catch all syslog port with printers and lab machines.
  • Monitor message rates per input and alert on sudden changes. A spike can mean an attack, a misconfigured source or an attempt to flood evidence.

TLS on inputs and data in transit

Graylog's input documentation says TLS is generally recommended to protect data in transit, especially over public or untrusted networks. Its table shows that most listed inputs and pull inputs support TLS, with some important limits:

  • CEF, Raw/Plaintext and Syslog support TLS on TCP only.
  • GELF supports TLS on HTTP and TCP only.
  • IPFIX, JSON Path from HTTP API, Random HTTP Message Generator and Raw HTTP do not support TLS.
  • Sophos Central is not marked as TLS capable.

The practical reading is that any UDP based syslog, CEF, raw or GELF feed travels in clear text. Logs frequently contain user names, internal addresses and sometimes tokens or passwords that applications should not have written, so clear text log transport is a credential exposure risk, not just a privacy issue.

NHI Mgmt Group recommendations:

  • Move sources from UDP to TCP with TLS wherever the sending system supports it.
  • Where a source can only send clear text, place a local forwarder close to it and send from the forwarder to Graylog over TLS.
  • For inputs with no TLS option, keep them on isolated network segments and do not use them for sensitive sources.
  • Use certificates from an internal certificate authority with a defined renewal process. Input certificates are as easy to forget as web certificates, and an expired one can silently stop ingestion.

Pull inputs and the credentials Graylog holds

Pull inputs connect to an endpoint or API and retrieve logs, and Graylog's documentation notes that they usually require authentication to the source. For filtered inputs pulling from an external data lake, Graylog strongly recommends creating a filtered input when setting up a new data lake connector. Graylog also notes that its pull input guidance mainly applies to self-managed editions.

Every pull input is a non-human identity: an API key, client secret, access key or service account that lets Graylog read data from a cloud service or security tool. These credentials are often granted broad read rights during set up and then forgotten. NHI Mgmt Group recommends:

  • Create a dedicated service identity per pull input, never a personal account or a shared administrator credential.
  • Grant read only, log specific permissions at the source. Graylog only needs to read audit and event data.
  • Record each pull input credential in your NHI inventory with an owner, a scope and an expiry or rotation date.
  • Rotate credentials on a schedule and immediately when a Graylog administrator leaves.
  • Use filtered inputs to limit the data pulled to what you actually need, which also limits what an attacker gains if Graylog is compromised.
  • Where Graylog has an Illuminate pack for a source, Graylog advises enabling it before creating the input to avoid duplicate entities. That is an operational point, but duplicate inputs also mean duplicate credentials to manage.

Protecting the search back end and MongoDB

Graylog depends on a search back end for message storage and on MongoDB for configuration and metadata. The sample configuration shows elasticsearch_hosts defaulting to http://127.0.0.1:9200 and mongodb_uri set to mongodb://localhost/graylog. Both defaults assume local, unauthenticated, clear text connections.

Graylog also documents a separate data node configuration file at /etc/graylog/datanode/datanode.conf for installs that use it.

Anyone who can reach these stores directly bypasses Graylog's own access control entirely. They can read every message, change configuration, or delete indices. NHI Mgmt Group recommends:

  • Run the search back end and MongoDB on private networks reachable only from Graylog nodes and administrators.
  • Enable authentication and TLS on both, and update the connection strings in server.conf accordingly.
  • Treat the credentials embedded in those connection strings as secrets. They sit in the same file as the root password hash, which is one more reason to restrict file access tightly.
  • Back up MongoDB and test the restore. Losing it means losing users, roles, inputs and stream rules.

Search, content packs and file access settings

Several smaller settings in the sample configuration have security or resilience effects.

  • allow_leading_wildcard_searches defaults to false. Leading wildcard searches can be expensive on the search back end. Keeping the default reduces the chance that a single user, or a compromised account, can degrade search for everyone.
  • allow_highlighting defaults to false, for similar performance reasons.
  • content_packs_loader_enabled defaults to false. When enabled it automatically loads content packs from content_packs_dir, which defaults to <data_dir>/contentpacks, on the first start. Content packs can create inputs and other configuration, so NHI Mgmt Group recommends reviewing any pack before loading it and keeping the directory writable only by administrators.
  • allowed_auxiliary_paths sets optional allowed paths for Graylog data files. Restricting this to specific directories limits which files on the server Graylog features can read.

Users, roles and administration

Beyond the root account, Graylog has local users and roles. The fetched sample configuration does not contain password policy or session settings, so check Graylog's current documentation for what your edition supports. The NHI Mgmt Group baseline for any log platform applies:

  • Integrate with your central identity provider where your edition supports it, so that joiner, mover and leaver processes apply to Graylog accounts automatically.
  • Give most users read access to the streams they need, not to everything. Logs from HR systems, identity providers and security tools often need narrower access than application logs.
  • Keep administrator rights to a small, named group, and review membership quarterly.
  • Treat API tokens issued to scripts and integrations as non-human identities: one per integration, least privilege, an owner and a rotation date.
  • Forward Graylog's own audit and server logs to a second location that Graylog administrators cannot modify, so that changes to the logging platform are themselves logged somewhere independent.

Our CIS Control 8 Audit Log Management Guide covers retention and review expectations that apply to the data Graylog holds.

Common failure patterns

  • Proof of concept promoted to production. The cluster was built quickly with http_bind_address opened to all interfaces and http_enable_tls left at false, and nobody revisited it.
  • Weak or shared password_secret. A short or copied value is used across environments, or the value lives in a shared document.
  • Default admin user name. root_username left as admin, with the root account used day to day.
  • Internet reachable listeners. A syslog or GELF input bound to a public interface accepts data from anywhere.
  • UDP everywhere. Security relevant sources sent over UDP, in clear text, with no delivery guarantee.
  • Exposed data stores. The search back end or MongoDB reachable from the wider network without authentication.
  • Overprivileged pull credentials. A cloud integration set up with an administrator key that never expires.
  • No monitoring of the monitor. Nobody alerts when an input stops receiving data or when message volume spikes.

Practitioner checklist

  • Set password_secret to a random value of at least 64 characters, stored in a secrets manager and identical across nodes.
  • Set root_password_sha2, rename root_username from admin, and set root_email to a monitored mailbox.
  • Restrict read access on server.conf, TLS key files and datanode.conf to the service account and administrators.
  • Keep the web interface off the internet and enable TLS with http_enable_tls or a re-encrypting reverse proxy.
  • Set trusted_proxies to exact proxy addresses.
  • Bind every listener input to an internal interface and restrict source addresses.
  • Move security relevant sources to TCP with TLS; isolate inputs that cannot use TLS.
  • Give each pull input its own least privilege service credential with an owner and rotation date.
  • Enable authentication and TLS on the search back end and MongoDB, and keep them on private networks.
  • Review content packs before loading and restrict allowed_auxiliary_paths.
  • Alert on input silence and volume spikes, and copy Graylog's own logs to an independent store.
  • Review administrator and API token inventory every quarter.

Standards and references

Related NHI Mgmt Group resources: SIEM Guide · CIS Control 8 Audit Log Management Guide · SIEM vs Log Management · Log pipeline (collectors, forwarders, data pipeline) health check

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.