sumologic-syslog()
The sumologic-http()
and sumologic-syslog()
destinations send log messages to Sumo Logic, a cloud-based log management and security analytics service.
Using the sumologic-syslog()
destination, you can send data (both in JSON and in non-JSON format) to the Sumo Logic service.
For more information about the sumologic-http()
destination, see sumologic-http().
Sending data using the sumologic-syslog() destination
Example: Sending data using the sumologic-syslog() destination
The following example illustrates how you can use the sumologic-syslog()
destination to send data to your Sumo Logic account.
log {
source { system(); };
destination{
sumologic-syslog(token("USER-TOKEN-AS-PROVIDED-BY-sumologic")
deployment("ENDPOINT")
tls(peer-verify(required-trusted) ca-dir('/etc/syslog-ng/ca.d'))
);
};
};
Sending JSON data using the sumologic-syslog destination
Example: Sending data using the sumologic-syslog() destination
The following example illustrates how you can use the sumologic-syslog()
destination to send JSON data to your Sumo Logic account.
log {
source{ system(); };
destination{
sumologic-syslog(token("USER-TOKEN-AS-PROVIDED-BY-sumologic")
deployment("ENDPOINT")
tls(peer-verify(required-trusted) ca-dir('/etc/syslog-ng/ca.d'))
template("$(format-json --scope all-nv-pairs)")
);
};
};
Last modified July 2, 2023: Change highlight mode of code examples (2f8a959)