Splunk Search

Make subsearch to use different timerange than main search

zucler
Explorer

Hi guys,

I'm looking for a solution to make a time range for my subsearch to be different from the main search (which uses datepicker).

At the moment, if I'm using earlier/later statements, it would not work. It just returns

[subsearch]: Your timerange was substituted based on your search string

The query is
source="/var/log/splunk/viewsAFR.log" type=start | join playbackID [ SEARCH source="/var/log/splunk/playbackAFR.log" ] | join [ SEARCH source="/var/log/splunk/afr_channel_map.csv" earliest=0 latest=now ]

Please advise.

Thanks

Tags (2)
0 Karma
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

It's telling you that it is working.

View solution in original post

e82than
Communicator

if you're not in a production environment, try using the logger command. Do make sure you send it from the system intended so the event can be read correctly. It can be used to simulate syslog events. You can try and ask for permission to inject events to proof your search is right.

I had to do it sometimes to test connectivity between systems. Also when in dispute of searches not working.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

It's telling you that it is working.

zucler
Explorer

Oh, indeed. Thanks for that. The search was returning me 0 results, so I thought it was not applying my date range, but that's another issue.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...