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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...