GithubHelp home page GithubHelp logo

log-pursher's Introduction

log-pursher

Log File Parser This is a python script for parsing a log file. The script uses a regular expression to search for specific patterns in the log file and extract the matches. The extracted data is then written to a new file, with the current date and time included in the file name.

Prerequisites The following packages must be installed to run this script:

re time Usage Save the script to a file with a .py extension (e.g. parser.py) Update the log_file_path variable with the path to the log file you want to parse. Run the script using a Python interpreter. Copy code python parser.py Customization You can modify the regular expression in the script to match different patterns in the log file. The current regular expression is set to extract data in the following format:

python Copy code {property_value} Output The script outputs a new file with the extracted data. The file will be named:

parsher_output{current_time}.txt Where {current_time} is the current date and time. The extracted data will be written to this file in the same format as it appears in the log file.

log-pursher's People

Contributors

arupsek avatar

Watchers

 avatar

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.