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

Cannot follow stdout and pipe into fx #40

Closed
saada opened this issue Nov 18, 2018 · 3 comments
Closed

Cannot follow stdout and pipe into fx #40

saada opened this issue Nov 18, 2018 · 3 comments

Comments

@saada
Copy link

saada commented Nov 18, 2018

Would be nice to tail json logs and pipe to fx.
Example

$ tail -f myjson.log | fx
# and get a realtime output of json objects
{
"@timestamp": ...
"message": ...
"objectId": ...
}
{
"@timestamp": ...
"message": ...
"customField" ...
}
...
@antonmedv
Copy link
Owner

But how it should be displayed on fx? Changed everytime?

@sompylasar
Copy link

JSON-per-line logs as input. Read and buffer up to the next newline character, parse the chunk, filter the parsed JSON, print what's yielded from the filter. Related: #35 (and streaming support).

@antonmedv
Copy link
Owner

Closing. Follow #48

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

3 participants