Code Monkey home page Code Monkey logo

chronicle-log-parser's Introduction

GitHub branch checks state GitHub GitHub Repo stars

Chronicle Log Parser

This webapp allows you to provide (1) a raw log, and (2) log parser code using Logstash format.

This was built using Next.js.

Author's notes

I'm not really a security expert, or a logstash expert, but I've been trying to find a way to test logstash parsing code for raw logs, for parsing into Google Chronicle UDMs.

I don't work in this field but I spent somewhere around 2 hours to set this whole system up. I think the UDM parsing might still be incorrect (70% vibe that it's incorrect) but I think the prompt can be improved so that ChatGPT is taught about the UDM model.

Limitations

⚠️ This tool is powered by AI LLMs, so do not use these as a source of truth. Use this tool as an approximation/supporting tool to improve your parser coding literacy. ⚠️

As this is powered by OpenAI's ChatGPT 3.5 (Turbo), this is not as powerful as ChatGPT 4's reasoning engine.

Given that, take it easy on the tool and ask it simple raw logs and parser code. Use it as a way to learn the Logstash format.

Development

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

Bug reports

I'm open to feedback, and I will improve this over time. Please submit GitHub issues if you find some issues.

Contributing

If you want to contribute examples, see public/content/samples.json. These can later be options that Chronicle log parsers can use on the parser simulator for study purposes.

Roadmap

  1. Improvements on the prompt engineering - if we could include Chronicle Documentation about the UDM schema definition, I think that will make sure the output of the AI tool will be updated.

Licensing

Apache License 2.0.

chronicle-log-parser's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

chronicle-log-parser's Issues

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.