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

--access-log doesn't seem to be working #5

Closed
jleclanche opened this issue Mar 21, 2014 · 3 comments
Closed

--access-log doesn't seem to be working #5

jleclanche opened this issue Mar 21, 2014 · 3 comments

Comments

@jleclanche
Copy link
Contributor

ngxtop -l /var/log/nginx/access.log
Traceback (most recent call last):
  File "/home/adys/bin/ngxtop", line 437, in <module>
    main(args)
  File "/home/adys/bin/ngxtop", line 420, in main
    total = process_log(source, pattern, processor, arguments)
  File "/home/adys/bin/ngxtop", line 325, in process_log
    total = processor.process(records)
  File "/home/adys/bin/ngxtop", line 272, in process
    for r in records:
  File "/home/adys/bin/ngxtop", line 206, in add_field
    for item in dict_sequence:
  File "/home/adys/bin/ngxtop", line 196, in map_field
    for item in dict_sequence:
  File "/home/adys/bin/ngxtop", line 196, in map_field
    for item in dict_sequence:
  File "/home/adys/bin/ngxtop", line 206, in add_field
    for item in dict_sequence:
  File "/home/adys/bin/ngxtop", line 206, in add_field
    for item in dict_sequence:
  File "/home/adys/bin/ngxtop", line 196, in map_field
    for item in dict_sequence:
  File "/home/adys/bin/ngxtop", line 245, in <genexpr>
    records = (m.groupdict() for m in matches if m is not None)
  File "/home/adys/bin/ngxtop", line 244, in <genexpr>
    matches = (pattern.match(l) for l in lines)
  File "/home/adys/bin/ngxtop", line 181, in follow
    with open(the_file) as f:
IOError: [Errno 2] No such file or directory: 'logs/access.log'
@jleclanche
Copy link
Contributor Author

Apparently caught by @bndr in #4 :)

@lebinh
Copy link
Owner

lebinh commented Mar 21, 2014

I merged the pull request of @bndr. Does it solve your problem?

@jleclanche
Copy link
Contributor Author

Yes.

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

2 participants