mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-11-02 09:45:06 +01:00
1.2 KiB
1.2 KiB
syslog sink
The syslog sink provides an easy way to submit metrics and events to the Syslog logging system.
Configuration structure
{
"<name>": {
"type": "syslog",
"meta_as_tags" : [],
"syslog_tag" : "mytag",
"syslog_priorities" : [
"LOG_INFO",
"LOG_LOCAL7",
],
"syslog_writer" : "info"
}
}
type: makes the sink ansyslogsinkmeta_as_tags: print meta information as tags in the output (optional)syslog_tag: The tag submitted with each messagesyslog_priorities: List of syslog priorities. Will be OR'd togethersyslog_writer: Submit metrics with this write level
Possible priorities for syslog_priorities
LOG_EMERGLOG_ALERTLOG_CRITLOG_ERRLOG_NOTICELOG_INFOLOG_DEBUGLOG_USERLOG_MAILLOG_DAEMONLOG_AUTHLOG_SYSLOGLOG_LPRLOG_NEWSLOG_UUCPLOG_CRONLOG_AUTHPRIVLOG_FTPLOG_LOCAL0LOG_LOCAL1LOG_LOCAL2LOG_LOCAL3LOG_LOCAL4LOG_LOCAL5LOG_LOCAL6LOG_LOCAL7
Possible writers for syslog_writer
infodebugalertemergerrnoticewarning