Splunk Search

how to start a Splunk search from a bash script

juancnunezc
New Member

I am pretty new to Splunk. I am looking for a way to start a Splunk search from a bash script. The scrip will be scheduled using cron. It will run periodically checking for a file. If the file has been received, it should trigger a Splunk search. Is is possible to do that? How? Any clue?

Thanks

Tags (2)
0 Karma

Ayn
Legend
0 Karma

juancnunezc
New Member

Ok, I did not know that. I am running Splunk a in Linux system and files with performance data from Windows will be received peridiocally. So, I can know if these file have been received using Splunk, right? How?. Could I trigger a search over those files?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Why use bash? Splunk can monitor files and schedule scripts natively.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...