Built an AI-powered Log Analyzer using Python and FastAPI to automate log analysis and troublesho...Built an AI-powered Log Analyzer using Python and FastAPI to automate log analysis and troublesho...
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Built an AI-powered Log Analyzer using Python and FastAPI to automate log analysis and troubleshooting. The system processes application/system logs, performs rule-based analysis, and uses an LLM to identify problems, root causes, severity, possible causes, and recommended actions. Exposed the functionality through REST APIs with structured Pydantic responses for reliable and consistent results.
Tech: Python, FastAPI, LLM/Ollama, Pydantic, REST APIs, Log Parsing, Prompt Engineering, Git.
Post image
Nugraha's avatar
Nutaraline logo
@Karamjit Singh Pairing rule-based checks with Ollama should help keep diagnoses grounded. How are you validating severity and recommended actions before returning the Pydantic response?
Karamjit's avatar
I validate the LLM output through a Pydantic response model before returning it. Severity is constrained to the expected values, while the rule-based analysis provides an additional signal to cross-check the LLM's diagnosis. For recommended actions, I validate that the response...
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started