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

ngxtop can't parse old logs (output is messed) #58

Closed
tchwpkgorg opened this issue Dec 1, 2015 · 1 comment
Closed

ngxtop can't parse old logs (output is messed) #58

tchwpkgorg opened this issue Dec 1, 2015 · 1 comment

Comments

@tchwpkgorg
Copy link

ngxtop is a nice tool, but I don't see a way to use it for old logs - while it does show the output nicely during log parsing, the output is garbled when log parsing finishes - see below for an example.

It would be nice if ngxtop had some kind of CSV/table/text output for such cases.

cat some-old-log | ngxtop

running for 0 seconds, 1000 records processed: 20227.36 req/sec

                                                           Summary:
                                                                   |   count |   avg_bytes_sent |   2xx |   3xx |   4xx |   5xx |
                                                                                                                                 |---------+------------------+-------+-------+-------+-------|
   |    1000 |          223.154 |   999 |     0 |     1 |     0 |

                                                                 Detailed:
                                                                          | request_path            |   count |   avg_bytes_sent |   2xx |   3xx |   4xx |   5xx |
                                                                                                                                                                  |-------------------------+---------+------------------+-------+-------+-------+-------|
                                                              | /v2/api/execute.php     |     985 |          223.951 |   985 |     0 |     0 |     0 |
                                                                                                                                                      | /v2/api/healthcheck.php |      15 |          170.800 |    14 |     0 |     1 |     0 |
@tchwpkgorg
Copy link
Author

Ugh, I've missed "--no-follow" option which does exactly what I want.

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