Code Monkey home page Code Monkey logo

logdissect's People

Contributors

dogoncouch avatar rcuza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

logdissect's Issues

Reversed UTC date conversion

Expected Behavior

Set UTC date forward from GMT-04:00

Actual Behavior

UTC dates set behind GMT-04:00

Steps To Reproduce Behavior

Export log to JSON, check numeric_date_utc attribute.

Specifications

  • Command tried:
  • logdissect version: 3.0.1
  • Python version:
  • Operating system:
  • Operating system version:
  • Log file type:
  • Other info that might be useful:

Limitation: accuracy only goes to seconds

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.

Finalize names

Finalize all names (variables, objects, methods, etc.).

Add API for morphers/outputs

Add morph_options and output_options objects with argument attributes; add instructions to README-API.md, manual page.

.gz file bug

Bug

Overview

logdissect crashes when passed a gzipped file.

Steps To Reproduce Behavior

logdissect .gz

Specifications

  • Command tried: logdissect .gz
  • logdissect version: 3.0.2
  • Python version: any
  • Operating system: Ubuntu Linux
  • Operating system version:
  • Log file type: any gzipped
  • Other info that might be useful:

Syslog entries with no host attribute

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.

Bug and solution( in case of gz log files ^^)

Bug and solution

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 :)

Specifications

  • Command tried:
  • logdissect version:
  • Python version:
  • Operating system:
  • Operating system version:
  • Log file type:
  • Other info that might be useful:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.