prometheus and syslog

901 views
Skip to first unread message

Andrew Meyer

unread,
Oct 25, 2017, 3:07:43 PM10/25/17
to Prometheus Users
I am trying to separate all prometheus logs to a separate file.  I"m having trouble with the --log.format string.  Can someone validate this?

--log.format="10.150.10.101?appname=snmp_exporter&local=4"

Tobias Schmidt

unread,
Oct 26, 2017, 5:53:18 AM10/26/17
to Andrew Meyer, Prometheus Users
We removed syslog integration from Prometheus 2.0 and will upgrade our exporters eventually as well. If you need syslog integration, the most future proof solution would be to use a side-car which takes the stdout output from Prometheus and writes that to the right syslog location.

On Wed, Oct 25, 2017 at 9:07 PM Andrew Meyer <andre...@gmail.com> wrote:
I am trying to separate all prometheus logs to a separate file.  I"m having trouble with the --log.format string.  Can someone validate this?

--log.format="10.150.10.101?appname=snmp_exporter&local=4"

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/36fa53b9-1bde-4a87-be6d-37079c8f7198%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Meyer

unread,
Oct 26, 2017, 10:34:12 AM10/26/17
to Tobias Schmidt, Prometheus Users
So i'm trying to do this with the snmp_exporter.  Also, i'm still on Prometheus 1.8 on CentOS 7.



Please remember to reply to all if there are multiple recipients.

On Thu, Oct 26, 2017 at 4:53 AM, Tobias Schmidt <tob...@gmail.com> wrote:
We removed syslog integration from Prometheus 2.0 and will upgrade our exporters eventually as well. If you need syslog integration, the most future proof solution would be to use a side-car which takes the stdout output from Prometheus and writes that to the right syslog location.

On Wed, Oct 25, 2017 at 9:07 PM Andrew Meyer <andre...@gmail.com> wrote:
I am trying to separate all prometheus logs to a separate file.  I"m having trouble with the --log.format string.  Can someone validate this?

--log.format="10.150.10.101?appname=snmp_exporter&local=4"

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages