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

enhance ngxtop ability #67

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

enhance ngxtop ability #67

wants to merge 9 commits into from

Conversation

Oh-Little-Papaya
Copy link

1 add ngxtop to handler multi log_path
2 add ngxtop ability to handler one log_path many log_formats

root and others added 6 commits July 9, 2016 11:59
	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']
Copy link

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

Copy link
Author

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

@lebinh
Copy link
Owner

lebinh commented Jul 27, 2016

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?

huangxiaofei added 3 commits August 6, 2016 11:02
	modified:   ngxtop/ngxtop.py
	modified:   ngxtop/ngxtop.py
	fix bug when type 'ngxtop info'
@Oh-Little-Papaya
Copy link
Author

fix bug when tap commands like 'ngxtop' or 'ngxtop info'

@Oh-Little-Papaya
Copy link
Author

@lebinh OK ,I will think how to break these pr into smaller pr

@lebinh
Copy link
Owner

lebinh commented Aug 6, 2016

That'd be great! Thanks @feigong

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

Successfully merging this pull request may close these issues.

3 participants