Splunk Search

how to transpose ?

sajumulakkal
New Member

field1,field2,field3
1, a, b
1, b, c
1, c, d
2, r, s
2, s, k
2, k, l
2, l, m

field 1 is the key

based on above data, I need to as following manner

1 a->b b->c c->d
2 r->s s->k k->l l->m

If any one have an idea, please share to me..

Tags (1)
0 Karma
1 Solution

diogofgm
SplunkTrust
SplunkTrust

Try this:

your search | eval changes = field2+"->"+field3 | stats values(changes) as changes by field1
------------
Hope I was able to help you. If so, some karma would be appreciated.

View solution in original post

0 Karma

diogofgm
SplunkTrust
SplunkTrust

Try this:

your search | eval changes = field2+"->"+field3 | stats values(changes) as changes by field1
------------
Hope I was able to help you. If so, some karma would be appreciated.
0 Karma

sajumulakkal
New Member

Thanks your solution/answer is excellent. It worked for me..
once again ... thanks to diogofgm.

0 Karma

sajumulakkal
New Member

Thanks diogofgm ... your solution/answer is excellent.. it worked for me...

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...