pino-loki icon indicating copy to clipboard operation
pino-loki copied to clipboard

Proxy mode

Open DarkPark opened this issue 1 year ago • 3 comments

Would be nice to do pipe chains like this:

myapp | pino-loki --hostname=http://somehost:3100 | pino-pretty --singleLine

This way anyone can do both quick peek logs in terminal and full analysis in Graphana.

DarkPark avatar Jan 29 '25 19:01 DarkPark

Yup that would be cool ! Happy to accept a PR, it should be pretty straightforward

Julien-R44 avatar Jan 30 '25 20:01 Julien-R44

@Julien-R44 already tinkered for myself ) JFYI of maybe even good to be add somewhere in docs:

myapp | tee >(pino-pretty --singleLine) >(pino-loki --hostname=http://somehost:3100) > /dev/null

DarkPark avatar Jan 30 '25 21:01 DarkPark

Cool! Might be cool to have something simpler. Will keep this issue open for when I have some time to put something together.

Julien-R44 avatar Jan 30 '25 21:01 Julien-R44

Closing since I have not really the bandwith to work on that right now. Feel free to re-open if feature is needed, or a PR is welcome

Julien-R44 avatar Jul 03 '25 18:07 Julien-R44