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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...