Ollama Repeated Application Errors
Description
Detects repeated Ollama application error events as a possible availability issue. Ollama application logs do not reliably record process termination, so this search cannot confirm a service crash without operating system or service manager telemetry.
Query · spl
`ollama_server`
(level=ERROR OR level=FATAL)
| rex field=_raw "msg=\"(?<msg>[^\"]+)\""
| rex field=_raw "exit_code=(?<exit_code>\d+)"
| bin _time span=5m
| stats count as error_count
earliest(_time) as first_seen
latest(_time) as last_seen
values(msg) as error_messages
values(exit_code) as exit_codes
dc(msg) as unique_errors
by _time host
| where error_count > 1
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S")
| eval last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| eval severity=case(error_count > 5, "critical", error_count > 2, "high", 1=1, "medium")
| eval attack_type="Repeated Ollama Application Errors"
| table first_seen last_seen host error_count
unique_errors error_messages severity attack_type
| `ollama_repeated_application_errors_filter`
Implementation guide
Ingest Ollama logs via Splunk TA-ollama add-on by configuring file monitoring inputs pointed to your Ollama server log directories (sourcetype: ollama:server), or enable HTTP Event Collector (HEC) for real-time API telemetry and prompt analytics (sourcetypes: ollama:api, ollama:prompts). CIM compatibility using the Web datamodel for standardized security detections.
Known false positives
- Recoverable model load failures, temporary registry or network errors, resource constraints, and other repeated application errors may trigger this exploratory signal without causing a service outage.
Analyst notes
Known false positives: Recoverable model load failures, temporary registry or network errors, resource constraints, and other repeated application errors may trigger this exploratory signal without causing a service outage.