Splunk Search

Evalaute field from different areas

vgodavarty0116
Engager

Hi, I would like to determine a field from different areas of a log. eg see below for my expectations. 

Note: You can be sure these three 

T INFO id=1 sourcetype=userservice FirstName=Vinod

T+1 INFO id=2 sourcetype=loginservice User 'Vinod' logged in

T+2 INFO id=3 sourcetype=userservice FirstName=Jason

T+3 INFO id=4 sourcetype=loginservice User 'Jason' logged in.

T+4 INFO id=5 sourcetype=userservice User deleted: Jason

 

Output:

Name | Count

Vinod  | 2

Jason | 3

Labels (5)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

We don't know if you have the fields extracted or not. If not, just do separate extractions for each of those ty[e of events extracting value to a field with the same nake.

If you, however, have the fields already extracted, do a rename or eval to get the same field name in all events.

Then you can easily aggregate all events.

0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security(ES) 7.3 is approaching the end of support. Get ready for ...

Hi friends!    At Splunk, your product success is our top priority. With Enterprise Security (ES), we're here ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...