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

Any benefits over amandasaurus / apache-log-parser? #3

Closed
carlinmack opened this issue Nov 24, 2021 · 2 comments
Closed

Any benefits over amandasaurus / apache-log-parser? #3

carlinmack opened this issue Nov 24, 2021 · 2 comments
Labels
question User requests information

Comments

@carlinmack
Copy link

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

@jwodder
Copy link
Owner

jwodder commented Nov 24, 2021

I believe this is the first I've heard of apache-log-parser. Some of the features I see that apachelogs has that apache-log-parser doesn't seem to:

  • apachelogs can piece together a full timestamp from various different %{*}t formats
  • apachelogs allows looking up parsed fields by both name (entry.request_time) and directive (entry.directives["%t"])
  • apachelogs provides constants for some of the most common log formats
  • apachelogs unescapes escape sequences in strings
  • apachelogs supports a few directives that apache-log-parser does not, like %{name}c and %{ms}T

I'm not about to do performance testing, but both libraries work by converting log formats to regexes, so their performance is likely to be roughly the same.

@FelixSchwarz
Copy link

Also https://github.com/amandasaurus/apache-log-parser uses a GPL v3 license. This may or may not be a good thing depending on your project.

@jwodder jwodder added the question User requests information label Sep 24, 2023
@jwodder jwodder closed this as completed Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question User requests information
Projects
None yet
Development

No branches or pull requests

3 participants