An open API service indexing awesome lists of open source software.

https://github.com/caledoniaproject/advancedlogparser-cli

Command-line edition of advanced log parser
https://github.com/caledoniaproject/advancedlogparser-cli

Last synced: 9 months ago
JSON representation

Command-line edition of advanced log parser

Awesome Lists containing this project

README

          

## Advanced Log Parser
Convert plain-text logs into SQL database.

## Quick start

Insert the first two fields from /etc/passwd into a table named 'parser',


./logparser.pl \
--regex '^(?<name>[^:]+):(?<password>[^:]+)' \
--file '/etc/passwd' \
--report '/run/shm/logparser-cmd.db' \
--table 'parser'

## Perform database query

List the first entry of the 'parser' table,


%> echo 'select * from parser limit 1;' | sqlite3 -batch /run/shm/logparser-cmd.db
password name
---------- ----------
x root