log2json alternatives and similar packages
Based on the "json" category.
Alternatively, view log2json alternatives based on common mentions on social networks and blogs.
-
xml-to-json-fast
Fast, light converter of xml to json capable of handling huge xml files -
digestive-functors-aeson
Run digestive-functors against a JSON document -
highjson
Haskell: Low boilerplate, easy to use and very fast Haskell JSON serialisation and parsing -
json-rpc-server
A Haskell implementation of JSON RPC 2.0 on the server side. -
curl-aeson
Haskell library for communicating with HTTP service using JSON -
json-rpc-client
Functions for creating a Haskell JSON-RPC 2.0 client.
Access the most powerful time series database as a service
Do you think we are missing an alternative of log2json or a related project?
README
log2json
The log2json command takes the LogFormat string to use and a list of
filenames as command-line arguments. If nothing is supplied, it uses
the Apache httpd default LogFormat string %h %l %u %t "%r" %>s %b
.
log2json < some.log
log2json '%h %u %t %{tid}P "%r" %>s %b' < another.log
LogFormat
LogFormat is a Haskell module that makes it trivial to parse access log records.
LogFormat will take the LogFormat configuration from your httpd.conf file and a log file and give you your log records as Maps where the key is the field name.
The Apache httpd configuration files allow you to customize the format of your log file records using the LogFormat directive. For example, if you want every line of your access log to read "Hello Web" you can do that like so:
LogFormat "Hello Web" custom
More often you'll use a value such as
LogFormat "%h %l %u %t \"%r\" %>s %b" common
and receive log records like
127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326