Splunk Search

Associating fields across events

999chris
New Member

Hi All,

I was hoping someone could answer my query:

I have the following:

index=ateme status=* | eval progress=if(status=="complete",100,progress) | stats latest(status) as Status, latest(progress) as Progress by jobId

Which creates a table I need. However the "jobId" field needs to be cross referenced with another field in a different event entry which would give me a filename and I would like to replace the jobId column with the filename associated with that jobId.

Does that make sense?

0 Karma

sundareshr
Legend

If the event that has the Filename also has the jobid, you can try this. If it doesn't you have to provide some samples

index=ateme status=* | eventstats values(filename) as filename by jobId | eval progress=if(status=="complete",100,progress) | stats latest(status) as Status, latest(progress) as Progress by filename 
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 ...