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/CABbyFmpippNR2iuV%2BayMgvzXvnpTBJm8NXi19T6G5Fqn7tOW7Q%40mail.gmail.com.

Reply via email to