Getting Data In

How to turn values into their own field?

russell120
Communicator

Hi. I'd like to grab unique values of a field, and turn them into their own field. And then, to put their corresponding deviceID under them. Please see the example.csv:

classification   deviceID
alpha bravo       1001
alpha bravo       1002
alpha bravo       2002
  bravo           5500
  bravo           6600
  bravo           0077
  alpha           1114
  alpha           3334

How do I create a query to show this CSV manipulated like the below?:

alpha bravo   bravo   alpha
   1001       5500    1114
   1002       6600    3334
   2002       0077    
Tags (3)
0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Give this a try

your current search giving fields classification,deviceID
| streamstats count as temp by classification
| xyseries temp classification deviceID | fields - temp

View solution in original post

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Give this a try

your current search giving fields classification,deviceID
| streamstats count as temp by classification
| xyseries temp classification deviceID | fields - temp
0 Karma

russell120
Communicator

Works perfectly. Thanks bro.

0 Karma
Get Updates on the Splunk Community!

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 ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...