Chapter 15. Enriching log messages with external data
To properly interpret the events that the log messages describe, you must be able to handle log messages as part of a system of events, instead of individual information chunks. The syslog-ng OSE application allows you to import data from external sources to include in the log messages, thus extending, enriching, and complementing the data found in the log message.
The syslog-ng OSE application currently provides the following possibilities to enrich log messages.
You can add name-value pairs from an external CSV file. For details, see Section 15.1, Adding metadata from an external file.
You can resolve the IP addresses from log messages to include GeoIP information in the log messages. For details, see Section 15.2, Looking up GeoIP data from IP addresses (DEPRECATED).
You can write custom Python modules to process the messages and add data from external files or databases. For details, see Section 12.10, The Python Parser.