-
Notifications
You must be signed in to change notification settings - Fork 473
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
enhance ngxtop ability #67
base: master
Are you sure you want to change the base?
Conversation
new file: ngxtop.egg-info/PKG-INFO new file: ngxtop.egg-info/SOURCES.txt new file: ngxtop.egg-info/dependency_links.txt new file: ngxtop.egg-info/entry_points.txt new file: ngxtop.egg-info/requires.txt new file: ngxtop.egg-info/top_level.txt modified: ngxtop/config_parser.py modified: ngxtop/ngxtop.py new file: tmp/ngxtop.log
modified: ngxtop/ngxtop.py add ngxtop ability to support muti log_path and muti log_format
deleted: ngxtop.egg-info/SOURCES.txt deleted: ngxtop.egg-info/dependency_links.txt deleted: ngxtop.egg-info/entry_points.txt deleted: ngxtop.egg-info/requires.txt deleted: ngxtop.egg-info/top_level.txt
modified: ngxtop.py delete some useless note
delete records[status] logging
for directive in access_log.searchString(config).asList(): | ||
path = directive[1] | ||
if path == 'off' or path.startswith('syslog:'): | ||
# nothing to process here | ||
continue | ||
|
||
format_name = 'combined' | ||
access_logs_dict[path] = ['combined'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here you lose all previously gathered format info for path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can see this line : log_formats_dict = dict(get_log_formats(config_str)) in function
detect_log_config . There did not lose all previously gathered format info for path
thanks @feigong, can you have some summary of this changes or break this down into smaller PR so it'd be easier for me to review and merge them? |
modified: ngxtop/ngxtop.py
modified: ngxtop/ngxtop.py fix bug when type 'ngxtop info'
fix bug when tap commands like 'ngxtop' or 'ngxtop info' |
@lebinh OK ,I will think how to break these pr into smaller pr |
That'd be great! Thanks @feigong |
1 add ngxtop to handler multi log_path
2 add ngxtop ability to handler one log_path many log_formats