Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json output implementation for further log parsing. #102

Closed
allyrr opened this issue Apr 14, 2020 · 0 comments
Closed

json output implementation for further log parsing. #102

allyrr opened this issue Apr 14, 2020 · 0 comments

Comments

@allyrr
Copy link

allyrr commented Apr 14, 2020

I am using goreman to run multiple processes inside the docker container and all processes's output is in json format but goreman adds its own output (name of the process).

Example of Procfile:

nginx: /usr/sbin/nginx

output I got:
14:09:37 nginx | {"remote_addr":"127.0.0.1","remote_user":"","time_local":"14/Apr/2020:14:09:37 +0000","request":"GET / HTTP/1.1","status":"200","body_bytes_sent":"612","http_referer":"","http_user_agent":"curl/7.58.0","request_time":"0.000",}

but I need only:
{"remote_addr":"127.0.0.1","remote_user":"","time_local":"14/Apr/2020:14:09:37 +0000","request":"GET / HTTP/1.1","status":"200","body_bytes_sent":"612","http_referer":"","http_user_agent":"curl/7.58.0","request_time":"0.000",}

(without 14:09:37 nginx | part).

Is it possible to implement it?

@allyrr allyrr closed this as completed Mar 14, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant