If i use json format, can i modify the attributes name? does it have
something similar to log4j.xml that i can override it and define new
attributes?


On Sun, 30 Aug 2020, 5:21 pm Ben Kochie, <[email protected]> wrote:

> Prometheus only logs to stderr. The log format is controlled by the
> `--log.format` flag. The only option is the default logfmt format, and json.
>
> On Sun, Aug 30, 2020 at 5:18 PM mostafa hamdy <[email protected]>
> wrote:
>
>> Hi team,
>> Currently i am using prometheus docker image *prom/prometheus.*
>> I wanted to send prometheus logs to kibana, instead of having to ssh to
>> the machines and find find the logs.
>> Is it possible to change the log format for prometheus, and if it's
>> possible then how can i do it?
>>
>> Also where is the log directory inside docker?
>> Currently to find logs i have two ways:
>>
>>    1. docker logs {containerId}.
>>    2. In host machine inside /var/lib/docker/containers/*/*.log.
>>
>> Where can i find log directory inside docker so i can map it to a
>> directory in host machine outside docker.
>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/prometheus-users/695f176c-e918-47f2-b8fc-2def5aa57225n%40googlegroups.com
>> <https://groups.google.com/d/msgid/prometheus-users/695f176c-e918-47f2-b8fc-2def5aa57225n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAK3tjFVYfNRHTvQfu-scg%3DQK1ox8z3Ft6_FnQgauLi7Fnb6A3A%40mail.gmail.com.

Reply via email to