Splunk Search

how to convert a single field into multivalued field

Tridi123
New Member

My currrent ouput is now:

file name                                       keyword 
project_plan_project.doc                        project 
project_plan_project.doc                        plan

Actually i want single row at final ouput as below:

file_name                                        keyword
project_plan_project.doc                         project
                                                 plan

can nomv help on this requirement??

Tags (1)
0 Karma

lguinn2
Legend

Actually, I think that stats might work...

yoursearchhere
| stats values(keyword) by file_name

if you just need to see the values. If you want a count for each value found, then you could do

yoursearchhere
| stats count by file_name keyword
0 Karma

lguinn2
Legend

I updated my answer to include a way to count...

0 Karma

Tridi123
New Member

can i use
............|stats values(keyword) count(keyword) as keywordshit
by file name

0 Karma
Get Updates on the Splunk Community!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...