First, some quick comment. Judging from your attempted SPL, and your tendency to think "join", Splunk is not laughing. It is just a stranger to you. And strangers can be intimidating. I often kee...
See more...
First, some quick comment. Judging from your attempted SPL, and your tendency to think "join", Splunk is not laughing. It is just a stranger to you. And strangers can be intimidating. I often keep a browser tab open with https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/ so I can easily lookup what's available, and what syntax any command or function requires. For example, Time modifiers describe in much detail what you can give as earliest and latest. MaxTime is just not a thing in SPL. If MaxTime is a field you calculated previously, you cannot easily pass it into a subsearch (which is what join command must call). For this latter point to strike home, you will need some more familiarity about how Splunk work. Splunk's Search Manual can be a good start point to learn those. Back to your actual use case, technically you can make Splunk do exactly what you wanted. But as I hinted above, Splunk - and Splunk practitioners like me, intimidate, nay bully those who dare to join. Unless absolutely necessary, just use a Splunk-friendly query to achieve the same goal. It will benefit you in the short term as well as long. You mention time periods you tried to connect the two searches, but give no indication as to what is the link between the two searches. It seems obvious that you are not trying to "join" the two searches by _time. So, there must be some other logic other than just wanting to set time interval differently. Can you describe the actual logic in your use case? What is the output you are trying to get? What are some data characteristics that help you arrive at your output? Illustrate in concrete terms or mockup data.