Log Monitoring and Management with Nagios

A disk controller starts logging errors overnight, an account racks up failed logins, or a server quietly stops sending its logs, and the evidence sits in a file on a machine nobody is watching. Nagios Log Server collects log data from Windows, Linux, network devices, and applications into one indexed, searchable store, and alerts when a query you define matches. Nagios XI turns those log events into Host and Service states, so log problems reach your team through the same notifications, dashboards, and reports as the rest of your monitoring.

Log Server and Nagios XI are separate solutions, each licensed separately. Nagios XI checks individual logs on the machines it monitors. Centralizing, searching, and retaining log data requires Log Server.

What Is Log Monitoring and Management?

Log monitoring is the practice of collecting the event records that operating systems, applications, and network devices write, then searching those records and alerting when an entry, or a count of entries, matches criteria you define. Log management covers what makes that work at scale: shipping logs to a central location, parsing them into searchable fields, indexing them, and retaining them for a set period before they are archived or deleted.

Why Log Monitoring Matters

Logs record what happened. Monitoring them means someone finds out while it still matters:

  • Faster root cause: The line that explains an outage is searchable from one interface instead of sitting on the machine that failed.
  • Silent sources surface: A Host that stops sending logs produces an alert, which catches a crashed log shipper, a full disk, or a dead server.
  • Counts, not guesses: Failed logins, HTTP errors, or application exceptions are counted over a time window and compared against Warning and Critical thresholds.
  • Evidence after the fact: Retained and archived log data supports incident review, audits, and retention requirements.
  • One alerting path: Log events can arrive in Nagios XI as Service states, inheriting the notification rules your team already uses.

Log Monitoring Capabilities in Nagios Log Server and Nagios XI

Centralized Log Collection

Log Server includes setup guides for common sources, and each guide generates the configuration with your Log Server address already filled in.

  • Windows event logs: NXLog Community Edition (CE), a third-party log shipper, forwards Windows logs. Its installer is downloaded from your Log Server instance.
  • Linux system logs: A setup script configures rsyslog to forward system logs, the basis of rsyslog and syslog-ng monitoring.
  • Files, network devices, and applications: Built-in guides cover Windows and Linux log files, network devices, Apache, IIS, MySQL, and MS SQL. Apache log monitoring uses the same pipeline.
  • Additional inputs: Log Server also accepts data on TCP and UDP ports, as SNMP traps, from Unix sockets, and from long-running command pipes.
  • Encrypted transport: Syslog and NXLog traffic can be sent over TLS.

Documentation: Monitoring A New Log Source With Nagios Log Server | Sending Windows Logs To Nagios Log Server

Log Parsing and Field Extraction

Incoming logs pass through Logstash filters before they are indexed, so searches and alerts work on named fields rather than raw text.

  • Field extraction: Filters break each message into fields such as host, program, and severity.
  • Enrichment: Filters add geo-location data and resolve IP addresses to DNS names.
  • Noise reduction: Filters drop messages you do not want indexed, which saves disk and keeps searches fast.
  • Custom formats: Custom filters organize non-standard log data from less common sources.
  • Configuration history: A config snapshot is saved automatically each time inputs, filters, and outputs are applied, and can be restored.

Documentation: Nagios Log Server Technical Overview And Terminology Definitions

Log Search, Dashboards, and Reports

  • Query-based search: Lucene queries and filters narrow results to specific sources and events. Multiple queries on one dashboard are color-coded.
  • Simple and Advanced modes: Simple mode searches by keyword or ready-made query from the Home page. Advanced mode opens the full dashboard and query builder.
  • Dashboard panels: Histogram, term, table, log table, and map panels visualize results, with minimum, maximum, mean, and standard deviation calculated on numeric fields.
  • Natural language queries: An experimental feature turns a plain-English statement into a Lucene query using an AI provider API key or a self-hosted model. Only the query text, the current date and time, and field names are sent. Log messages are not.
  • Reports: Default reports such as SSH Errors and Windows Updates are included, and any dashboard can be saved as a report, emailed, downloaded, or scheduled.

Log Alerting and Thresholds

Log Server alerts compare what arrived against values you set. Three alert types cover different failure patterns.

  • Query alerts: A saved query runs on a check interval over a lookback period, and the number of matching entries is tested against Warning and Critical thresholds. Results can lag by up to one check interval.
  • Per-event alerts: Criteria evaluated in the Logstash pipeline as each event arrives, with no interval delay. Each one adds processing load, so they suit a small number of critical events. A rate limit caps how often each instance sends.
  • Host freshness alerts: Hosts in the address ranges you specify are polled hourly, and a Host that has stopped sending logs triggers the alert. The check can also be run on demand.
  • Alert methods: Send to Nagios XI or Nagios Core over the Nagios Remote Data Processor (NRDP), email Log Server users with customizable templates and macros, send an SNMP trap, or run a script. Log Server can also send alerts to Nagios Fusion.

Documentation: Alerting On Log Events In Nagios Log Server

Log Server Queries as Nagios XI Services

  • Query-based Services: The Nagios Log Server Wizard in Nagios XI copies existing Log Server queries, or new Lucene or JSON queries, into Services. Each Service has its own lookback duration and Warning and Critical thresholds on the number of matches.
  • Absence checks: Thresholds can also go Critical when expected entries stop appearing, such as a nightly job that no longer logs completion.
  • Independent copies: Queries copied into Nagios XI run independently, so later edits in Log Server do not change existing checks.
  • Passive results over NRDP: Log Server alerts sent over NRDP arrive in Nagios XI as passive check results. Results for Hosts and Services not yet configured appear under Unconfigured Objects, ready to be added.

Documentation: How To Monitor Nagios Log Server Queries With Nagios XI

Log Checks in Nagios XI Without Log Server

Nagios XI checks logs on individual machines. These checks alert on matches but do not build a central, searchable store.

  • Windows event logs: The Windows Event Log Wizard reads event logs through the Nagios Cross-Platform Agent (NCPA) and applies the filters you define, which is the basis of Windows event log monitoring.
  • Linux log file patterns: Swatchdog, a third-party log watcher, matches log lines against regular expressions and sends matches to Nagios XI as passive results over the Nagios Service Check Acceptor (NSCA).

Documentation: How To Monitor Windows Event Logs in Nagios XI | Log Monitoring With Swatchdog In Nagios XI

Log Retention, Snapshots, and Scaling

  • Daily indices: Log Server creates a new index for each day of logs. By default, indices older than 60 days are closed, which keeps them on disk but requires reopening them to query.
  • Snapshots: Scheduled snapshots archive indices to a shared repository that every instance can reach, and can be restored for later analysis.
  • Open index capacity: Each instance holds up to 1,000 shards of open indices, and each daily index uses five shards, so one instance keeps fewer than 200 days of indices open. Adding instances raises the limit.
  • Clusters: Instances in a cluster share indexing, search, alerting, and maintenance. A cluster of three or more instances keeps mirrored copies of data across instances.
  • Instance roles: Roles assign responsibilities such as manager eligibility to specific instances, so hardware can match the work each one does.
  • Load-balanced intake: A Cluster Hostname lets sources send to one name behind round robin DNS or a load balancer.
  • Disk warnings: Log Server displays a warning when search engine disk usage passes a threshold you define.

Documentation: How To Back Up And Restore Nagios Log Server

Log Server Security and Access Control

  • Admin and User accounts: Standard users receive only the permissions granted to them, such as creating or editing alerts.
  • Host Lists: Restrict each user to log data from specific sources, which supports multi-tenant use of a single cluster.
  • Directory authentication: Users can authenticate against Active Directory or LDAP.
  • API access: Off by default for new users and enabled per account.
  • Audit log: Log Server records user activity in an audit log, and Nagios XI can send its own audit log to Log Server.
  • Certificate management: TLS and SSL certificates are managed from a dedicated Admin page.
  • Access in Nagios XI: Services fed by log alerts follow Nagios XI roles and user permissions like any other Service.

Benefits of Nagios Log Monitoring and Management

One place to search. Logs from Windows, Linux, network devices, and applications are indexed in one cluster, so finding the cause of an outage does not start with logging in to the machine that failed.

Problems reported, not discovered. Query, per-event, and host freshness alerts turn a log entry, a burst of entries, or missing entries into a notification.

Log alerts that follow your on-call rules. Log events delivered to Nagios XI become Services with states, so escalations, notification periods, and reports apply to them without a second alerting system.

Retention you control. Daily indices, close policies, and snapshots set how long data stays searchable and how long it stays archived. Retention supports compliance work; meeting a specific regulation remains the organization’s responsibility.

Capacity grows with instances. Adding an instance to the cluster adds storage, open index capacity, and redundancy without replacing what is running.

Log Monitoring Prerequisites

  • Nagios Log Server: A Log Server instance or cluster, licensed separately from Nagios XI. Each instance needs at least 8 GB of RAM, and 8 CPU cores per instance is recommended. Sizing depends on daily log volume and retention period.
  • Snapshot repository: A shared NFS or CIFS network file system, mounted at the same path on every instance, for snapshots.
  • Windows sources: NXLog CE on each Windows machine that sends logs.
  • Linux sources: rsyslog on each Linux machine that sends logs.
  • Network path: Each source must reach Log Server on the input port shown in its setup guide.
  • Nagios XI integration: A Log Server user account with API access enabled for the Nagios Log Server Wizard, and an NRDP token in Nagios XI for alert delivery. NRDP is preinstalled in Nagios XI.
  • Windows Event Log Wizard: NCPA installed on the target Windows machine, reachable on TCP 5693 by default, with its token.
  • Natural language queries: An API key from a supported AI provider, or a self-hosted model.

How Log Monitoring Works with Nagios Log Server and Nagios XI

Each source ships its logs to Log Server: Windows machines through NXLog CE, Linux machines through rsyslog, and network devices over syslog. Logstash receives each message, filters parse it into fields, and the result is indexed within seconds in a daily index spread across the cluster. Dashboards and queries search that data, and alerts test queries against Warning and Critical thresholds on a schedule, test individual events as they arrive, or flag Hosts that have gone quiet.

When an alert fires, Log Server sends it to Nagios XI over NRDP, emails users, sends an SNMP trap, runs a script, or forwards it to Nagios Fusion. In Nagios XI, the Nagios Log Server Wizard creates Services from Log Server queries, each with its own lookback period and thresholds, so a matching log count moves a Service to Warning or Critical and triggers the notification rules already in place.

Documentation: Monitoring A New Log Source With Nagios Log Server | Alerting On Log Events In Nagios Log Server | How To Monitor Nagios Log Server Queries With Nagios XI

Where Nagios Fits in Log Monitoring

Log Server is log management and log monitoring: collection, parsing, search, dashboards, retention, and alerting on log content. Alerts match entries against queries and thresholds you write, so Log Server finds what you tell it to look for. Cross-source security correlation rules, threat intelligence, behavioral analytics, and automated incident response are a different category of tool. Failed logins, privilege changes, and other authentication events are covered in security log monitoring.

Intrusion detection, packet capture, network scanning, and flow analysis belong to Nagios Network Analyzer. Nagios XI covers Host and Service checks, including checks on individual logs. Nagios Fusion provides a single pane of glass across multiple Nagios servers and can receive Log Server alerts. Each is licensed separately.

Frequently Asked Questions

Is Nagios Log Server open source?

No. Log Server is a commercial solution built on the open-source OpenSearch and Logstash projects, with a web interface, alerting, and cluster management developed by Nagios. Nagios Core and its plugins are open source. Log Server and Nagios XI each offer a 30-day trial.

Do I need Nagios XI to use Nagios Log Server?

No. Log Server collects, searches, and retains logs on its own, and its alerts can email users, send SNMP traps, or run scripts. Nagios XI adds Host and Service states, notification rules, and reporting for log events, and Nagios Core can also receive Log Server alerts over NRDP.

Can Nagios XI monitor logs without Log Server?

Yes, on individual machines. The Windows Event Log Wizard checks event logs through NCPA, and Swatchdog, a third-party log watcher, sends Linux log matches to Nagios XI over NSCA. Neither collects logs into a central searchable store or retains them. See How To Monitor Windows Event Logs in Nagios XI.

Does Log Server require an agent on each source?

Windows machines need NXLog CE, a third-party log shipper whose installer is downloaded from your Log Server instance. Linux machines use rsyslog, which most distributions already include. Network devices send syslog directly, with no agent.

How long does Nagios Log Server keep log data?

Retention is a setting you control. Log Server writes a daily index, closes indices older than 60 days by default, and archives indices to a shared snapshot repository on the schedule you set. How many days stay open and searchable depends on the number of instances in the cluster. See How To Back Up And Restore Nagios Log Server.

Is Nagios Log Server a SIEM?

No. Log Server centralizes, searches, retains, and alerts on log content. It does not include security correlation rules, threat intelligence, behavioral analytics, or automated response. It can feed log data and alerts to the tools and teams that do that work.

Can I upgrade Nagios Log Server 2024R1 to 2026 in place?

No. Log Server 2024R2 replaced the previous search backend with OpenSearch, so log data from 2024R1 and earlier is reindexed into a new 2026 cluster using the migration script included with Log Server 2026. Migrated alert queries are translated to a new field schema, so saved queries and external tools that reference old field names need review. A new 2026 instance also cannot join an existing 2024R2 cluster until every instance in that cluster is upgraded to 2026. Customers who purchased Log Server before 2024R2 can request an additional license activation for the migration from [email protected].

Do natural language queries send my logs to an AI provider?

No. Only the query text, the current date and time, and the names of available fields are sent. Raw and parsed log messages stay in Log Server. A self-hosted model option keeps the query on your own infrastructure as well.

What access does the Nagios XI integration need?

The Nagios Log Server Wizard authenticates with the API key of a Log Server user who has API access enabled. Alerts sent from Log Server to Nagios XI authenticate with an NRDP token defined in Nagios XI.

Related Solutions

Centralize Your Logs with Nagios Log Server

Collect, analyze, and visualize log data from across your infrastructure.