# 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](../../docs/axosyslog-core/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>)