Splunk Search

How to find event between two time fields?

bt149
Path Finder

I have logs (Azure logs) that have two time fields, StartTime and ExpirationTime.
Example:
index=azure sourcetype=my_sourcetype
| table StartTime ExpirationTime role user

I want to take the user and see if the user had a failed login attempt in another index / sourcetype between the two time fields StartTime and ExpirationTime.

Any help would be greatly appreciated.

Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

You could use the results of this search as argument to another one by using subsearch but it's usually better to obtain the same result by other means. I think I'd try to get the combined results from both indexes and then try to group them with stats to find what you're looking for but for that you'd have to be a bit more elaborate as to what you have in and want from that other index.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

How to find the worst searches in your Splunk environment and how to fix them

Everyone knows Splunk is a powerful platform for running searches and doing data analytics. Your ...

Share Your Feedback: On Admin Config Service (ACS)!

Help Us Build a Better Admin Config Service Experience (ACS)   We Want Your Feedback on Admin Config Service ...