Splunk Search

How do you reference a field value as a field to use in a table?

michaelrosello
Path Finder

So I have a field day_Today=Friday

Now I want to use the value of day_Today as a field in my table

| table Date value(day_Today)

the result of this should be

| table Date Friday

Tags (3)
0 Karma

493669
Super Champion

The table command generates a table with the field name mentioned displayed as a column name and their value in below subsequent rows..
so if you have Date and day_Today as field name and you want to display their values, then simply write as —

...| table Date day_Today

Note- field names are case sensitives

0 Karma

michaelrosello
Path Finder

I want to use field value as column name.

0 Karma

493669
Super Champion

try xyseries command-
http://docs.splunk.com/Documentation/Splunk/7.1.3/SearchReference/Xyseries

| xyseries Date day_Today <fieldname which you want to show under day_Today>
0 Karma
Get Updates on the Splunk Community!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...