An application that calls OpenAI using the result of a Splunk search command and sends a prompt
# Pre-work
- install python-dotenv
$SPLUNK_HOME/bin/splunk cmd python3 -m pip install python-dotenv
- update splunk_app_for_openai/bin/.env
update env file
```
OPENAI_API_KEY=
OPENAI_MODEL=gpt-4o-mini #select prefer model
OPENAI_API_BASE=https://api.openai.com/v1
```
# how to use
| makeresults
| eval question='What is MITRE ATT&CK?'
| callopenai prompt='{question}'
# other
if you have any question, please feel to free below repo.
https://github.com/saeoshi/splunk_app_for_openai