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
- Host: GitHub
- URL: https://github.com/caledoniaproject/advancedlogparser-cli
- Owner: CaledoniaProject
- Created: 2013-06-24T11:12:11.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-09-16T16:10:48.000Z (almost 13 years ago)
- Last Synced: 2025-10-09T08:19:53.789Z (9 months ago)
- Language: Perl
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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