---
title: "Logging with AxoSyslog"
url: "https://axoflow.com/docs/axosyslog-core/4.28/chapter-concepts/concepts-logging-with-syslog-ng/"
last_modified: "2023-06-27T21:05:00+02:00"
---

> For the complete documentation index, see [llms.txt](https://axoflow.com/docs/axosyslog-core/4.28/llms.txt).

# Logging with AxoSyslog

The AxoSyslog application reads incoming messages and forwards them to the selected *destinations*. The AxoSyslog application can receive messages from files, remote hosts, and other *sources*.

Log messages enter AxoSyslog in one of the defined sources, and are sent to one or more *destinations*.

Sources and destinations are independent objects, *log paths* define what AxoSyslog does with a message, connecting the sources to the destinations. A log path consists of one or more sources and one or more destinations: messages arriving from a source are sent to every destination listed in the log path. A log path defined in AxoSyslog is called a *log statement*.

Optionally, log paths can include *filters*. Filters are rules that select only certain messages, for example, selecting only messages sent by a specific application. If a log path includes filters, AxoSyslog sends only the messages satisfying the filter rules to the destinations set in the log path.

Other optional elements that can appear in log statements are *parsers* and *rewriting rules*. Parsers segment messages into different fields to help processing the messages, while rewrite rules modify the messages by adding, replacing, or removing parts of the messages.

---

[The route of a log message in AxoSyslog](https://axoflow.com/docs/axosyslog-core/4.28/chapter-concepts/concepts-logging-with-syslog-ng/concepts-route-of-a-message/index.md)

Last modified June 27, 2023: [Moves content/docs to content/ to shorten output url (a5fcf1ed)](https://github.com/axoflow/axosyslog-core-docs/commit/a5fcf1ed4956f586bc12af2b775e10aa75c1e630)
