jwodder / apachelogs Goto Github PK
View Code? Open in Web Editor NEWParse Apache access logs
License: MIT License
Parse Apache access logs
License: MIT License
Hi,
Great job with this package, used it to quickly parse large volumes of logs using Dask and it worked nicely out of the box.
I am now trying to parse error logs:
[Mon Feb 28 05:53:37.614199 2022] [php7:warn] [pid 527] [client 172.68.189.10:44562] PHP Warning: Illegal string offset 'strictly_necessary' in /home/admin/web/best-eq.com/public_html/wp-content/themes/iqtest/page-templates/gdpr-consent.php on line 85, referer: https://www.best-eq.com/?gclid=EAIaIQobChMI9Mu077-h9gIVBZSzCh2dLwRKEAAYASAAEgLNnvD_BwE
Any tips on these?
Anonymised extract from my log files :-
10.0.0.0 - anonymous 01/May/2022:07:27:52 +1000 "GET /some/uri/page.html HTTP/1.1" 200 238734 "-" "UserAgent/String"
Using the COMBINED format string, the parser is unable to process the above. It works perfectly when the timestamp is enclosed by square brackets, like so
10.0.0.0 - anonymous [01/May/2022:07:27:52 +1000] "GET /some/uri/page.html HTTP/1.1" 200 238734 "-" "UserAgent/String"
Not sure if bug or feature
https://github.com/amandasaurus/apache-log-parser
They both seem to be quite similar, you could elevate this project by showing better performance or edge cases that are handled better by this project
Hi,
Thanks for your parser, working great.
Please look at this access log entry where "%r" contains \n. I get an "InvalidEntryError : Could not match log entry..."
[23/Jul/2020:11:21:48 +0100] 66.240.192.138 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "\n" 226
LogParser('%t %h %{tls}x %{encr}x \"%r\" %b')
Is there smt wrong with my regexp or the way apachelogs handles \n ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.