Splunk Search

append searches

karthik4455
Explorer

I appended 2 searches and each of them has "top Engineer" and now my result is like this.

Engineer Escalated Closed

Shaun 61
Smith 53
Arun 41
Sam 19
John 14
Jason 13
Eddy 12
Rich 9
Arun 114
John 93
Shaun 76
Eddy 74
Jason 46
Rich 38
Smith 16
Sam 12

How can I have a result like this ?
Engineer Escalated Closed

Shaun 61 76
Smith 53 16
Arun 41 114
Sam 19 12
John 14 93
Jason 13 46
Eddy 12 74
Rich 9 38

Tags (1)
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

You could do one of two things:

search one | append [search two] | stats values(Escalated) as Escalated values(Closed) as Closed by Engineer

search one | join Engineer [search two]

The second approach will only work if the set of engineers in both searches is identical.

There probably is a third way to avoid the need to append altogether, do post your two searches so we can have a look.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

You could do one of two things:

search one | append [search two] | stats values(Escalated) as Escalated values(Closed) as Closed by Engineer

search one | join Engineer [search two]

The second approach will only work if the set of engineers in both searches is identical.

There probably is a third way to avoid the need to append altogether, do post your two searches so we can have a look.

yannK
Splunk Employee
Splunk Employee

remember that the sub search for the append is limited to 10000 results.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...