Getting Data In

How do I create a report that can run automatically only when the indexer performs indexing after receiving an input file from forwarder instead of the scheduling with given fixed time ?

vinaybandaru
Path Finder

How do I create a report that can run automatically only when the indexer performs indexing after receiving an input file from forwarder instead of the scheduling with given fixed time ?

I have a requirement to create a report to consider the actual volumes which acquires data from an indexed file that is received forwarded by the forwarder (not frequently) but when received and indexed the input file the report should automatically run with out depending on the scheduler. May be for example if the file has to be generally received daily once but if the file has not arrived but it arrived in delay (no fixed delay) or arrived next day how can i manage this kind of requirement in splunk ?

Could you please help me ?

0 Karma
1 Solution

woodcock
Esteemed Legend

You can schedule a search like this with a very wide value for Time picker:

index=<You should always specify an index> AND sourcetype=<And sourcetype too> AND source=<Your File Name here> _index_earliest=-5m@m ...

This way, even if the _time values are weeks old, the time it was indexed is in the last 5 minutes and you can do your work based on that.

View solution in original post

woodcock
Esteemed Legend

You can schedule a search like this with a very wide value for Time picker:

index=<You should always specify an index> AND sourcetype=<And sourcetype too> AND source=<Your File Name here> _index_earliest=-5m@m ...

This way, even if the _time values are weeks old, the time it was indexed is in the last 5 minutes and you can do your work based on that.

gcusello
SplunkTrust
SplunkTrust

Hi vinaybandaru,
create an alert that check if there are data in a period (e.g. one hour): if there are data, alert sends a report with the found data to an eMail, if there aren't results, alert isn't triggered and it not doesn't send anything.
Bye.
Giuseppe

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...