Hi hcarvcamp, hmm, seems like a memory leak. Have you tried utilizing the Database Connect App? It's built by Splunk precisely for this sort of purpose.
To address the script itself, could you share it in a comment? (or revise the question to include it)
Otherwise, please let me know if this answers your question! 😄
... View more