Splunk Search

How to view records/data horizontally by host?

hartcl1
Explorer

Hey is it possible to view data/records from a file horizontally by host.

For example, I have a search string like this:

search "event1234" | table host, value1,value2, value3

The result looks like this:

hostname1, value1
hostname1, value2
hostname1, value3

What I want to see is:

hostname, value1, value2, value3    

I want the records to be grouped by hostname and the data to grow horizontally for each hostname.

Is this possible?

C

Tags (2)
0 Karma
1 Solution

somesoni2
Revered Legend

You would be able to use commands like "chart" OR "xyseries" to do this transformation, but usage will depend on your data and required format. Please provide some sample data for better suggestions.

something like this

 "event1234" | table host, value | chart count over host by value

"event1234" | table host, value | eval temp=1| xyseries hostname value temp

View solution in original post

somesoni2
Revered Legend

You would be able to use commands like "chart" OR "xyseries" to do this transformation, but usage will depend on your data and required format. Please provide some sample data for better suggestions.

something like this

 "event1234" | table host, value | chart count over host by value

"event1234" | table host, value | eval temp=1| xyseries hostname value temp
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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