apache-log-parser
apache-log-parser copied to clipboard
Parses log lines from an apache log
I added the missing TRACE method
v1.7.0 (from pip, though apparently not on GitHub yet!) aborts with ValueError: invalid literal for int() with base 10: '630:212:8::80:10' on line 60, in extra_request_from_first_line if it encounters a URL...
I'm trying to do some multiprocess/distributed processing of apache logs, which uses serialization/deserialization via pickle for moving data between scheduler/worker processes. However, deserialization fails on the parsed outputs, in my...
first, sorry. I can not think of any better subject. we're using this apache log format ``` grep -rni LogFormat /etc/apache2/* | grep common apache2.conf:208:LogFormat "%h %l %u %t \"%r\"...
When using Python 3+, the ff error is generated: ``` File "/home/$USER/.local/lib/python3.6/site-packages/apache_log_parser/__init__.py", line 246, in parse match = self.log_line_regex.match(log_line) TypeError: cannot use a string pattern on a bytes-like object ```...
``` Traceback (most recent call last): File "log.py", line 29, in log_line_data = line_parser(loop) #We are using the apache parser as specified above File "/usr/local/lib/python3.4/dist-packages/apache_log_parser/__init__.py", line 246, in parse match...
Fix for issue #22 and test.
The parser works fine with HTTP/1.1 but fails with HTTP/2 that appears in Apache log with `Protocols h2`. Simple example (`lineB` is an actual output in the Apache server log...
Hi, I have this apache pattern for date : _%{%FT%T%z}t_ Sample log date : _2017-09-20T00:06:16+0200_ **Code ** > _format = "%{%FT%T%z}t" > line_parser = apache_log_parser.make_parser(_format) > log_line_data = line_parser('2017-09-20T00:06:16+0200') >...