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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...