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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...