LogParser.jl

Julia Package for Parsing Server Log Files
Popularity
4 Stars
Updated Last
3 Years Ago
Started In
August 2014

LogParser

Linux: Build Status
Windows: Build status
Codecov: codecov

LogParser.jl is a package for parsing server logs. Currently, only server logs having the Apache Combined format are supported (although Apache Common may parse as well). Additional types of logs may be added in the future as well.

LogParser.jl will attempt to handle the log format even if it is mangled, returning partial matches as best as possible. For example, if the end of the log entry is mangled, you may still get an IP address returned, timestamp and other parts that were able to be parsed.

Code examples

The API for this package is straightforward:

using LogParser

logarray = [...] #Any AbstractArray of Strings

#Parse file
parsed_vals = parseapachecombined.(logarray)

#Convert to DataFrame if desired
parsed_df = DataFrame(parsed_vals)

Licensing

LogParser.jl is licensed under the MIT "Expat" license

Used By Packages

No packages found.