dogoncouch / logdissect Goto Github PK
View Code? Open in Web Editor NEWCLI utility and Python module for analyzing log files and other data.
License: MIT License
CLI utility and Python module for analyzing log files and other data.
License: MIT License
Option (off by default) to include zipped archive log files, if their mtimes are within the time range or if no time range is specified.
Module to output LogData objects as CSV files.
Set UTC date forward from GMT-04:00
UTC dates set behind GMT-04:00
Export log to JSON, check numeric_date_utc
attribute.
Easier to use and document.
Fix all known bugs so we can start adding functionality.
Add parse option in syslog parser for ISO 8601 timestamps (e.g. 2017-05-02T23:26:40+00:00).
Because syslog timestamps don't have milliseconds, sorting after a merge is only accurate to the nearest second. Entries from each file for each second will be lumped together.
Looks good.
Can you contribute some parsing tricks to https://github.com/log2timeline/plaso ?
This seems more future-proof. Attributes could be added in new parsers without breaking existing functionality.
Handle output from pipes.
Geared toward use by other programs.
Add output module for log file format (same as input file, basically).
Parse raw syslog packets.
Finalize all names (variables, objects, methods, etc.).
Get to the point where we can figure out that something is broken.
Entries are sorted by UTC date stamp, which is set using the current system time zone. If log entries span daylight savings time shifts, this could be a problem.
Set with syslog parser.
Add morph_options
and output_options
objects with argument attributes; add instructions to README-API.md
, manual page.
logdissect crashes when passed a gzipped file.
logdissect .gz
Get to the point where testing can start.
Add post_parse_action
parser method for more customization. Entries will be passed through this method after lines are parsed, to add the ability to customize parsers a bit more.
Fix sorting when log crosses new year.
Add setup script for easy installation.
Add documentation.
Add daemon option to follow log inputs in real time.
Next release will have parsers (and possibly morphers) in an easy-to-use module that is accessible by other programs.
Syslog entries with no source host attribute don't parse right. This is the default configuration on FreeBSD, among others. The --no-host option has been added. It will be included in version 1.3.1 or 1.4, whichever comes next.
Add grep-like morpher.
Get everything off the ground so we can start looking for bugs
Let people pipe output, etc. Add -s option to silence terminal output.
if want to parse gz log file, the parser has some bugs.
Exactly, the function parser_file() in parser/type.py,
To sove this problem
loglines = reversed(logfile.readlines())
===> loglines = reversed([x.decode('utf-8') for x in logfile.readlines()])
Because, in the original loglines is a list of bytes. python regular expression(re) can parse only strings.
So, the above solution i convert bytes list to strings list .
enjoy this project code and have a nice day :)
Remove entries containing a pattern from the final output.
Add a parser for pcap files.
Examples:
--last=5m
--last=1h
--last=3d
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.