This webapp allows you to provide (1) a raw log, and (2) log parser code using Logstash format.
This was built using Next.js.
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.
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.
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.
I'm open to feedback, and I will improve this over time. Please submit GitHub issues if you find some issues.
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.
- 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.