Splunk Search

How do I reformat table values in columns to rows and rows to columns?

chandra61446
New Member

I have table like below

Backup_Status   BackupDate  Servers
Success       07/16/2016    archiveserver1
Failed         07/16/2016   archiveserver2
Success       07/17/2016    archiveserver3
Success       07/18/2016    archiveserver4
Failed         07/18/2016   archiveserver5

I would like to have:

BackupDate  Server1         Server2         Server3         Server4         Server5
            archiveserver1  archiveserver2  archiveserver3  archiveserver4  archiveserver5
07/16/2016  Success         Failed                                 
07/17/2016                                  Success
07/18/2016                                                  Success         Failed
0 Karma

javiergn
Super Champion

Is this what you are looking for?

your base search
| xyseries BackupDate Servers Backup_Status

Output:

alt text

0 Karma

sundareshr
Legend

Try this

... | chart values(Backup_Status) as Status over BackupDate by Servers
0 Karma
Get Updates on the Splunk Community!

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

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