Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Doesn't work for a large file? #15

Open
mauser8004 opened this issue Apr 15, 2021 · 0 comments
Open

Doesn't work for a large file? #15

mauser8004 opened this issue Apr 15, 2021 · 0 comments
Assignees

Comments

@mauser8004
Copy link

mauser8004 commented Apr 15, 2021

LogCheck.py

Traceback (most recent call last):
File "LogCheck.py.2", line 111, in
analyze_weblog(weblogfileName)
File "LogCheck.py.2", line 40, in analyze_weblog
user_agent = row[apachelogsfields.index('user_agent')]
IndexError: list index out of range

Logfile :
wc -l /var/srvlog/2021.04/access.log

400053 /var/srvlog/2021.04/doktori/access.log

It works with a smaller size:
wc -l /var/srvlog/2021.03/access.log
229303 /var/srvlog/2021.03/access.log

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants