Splunk Search

How to create a new field using eval and display it in a table?

mdufrasne
Explorer

I am struggling to make eval work with table.
Check out the screenshot below:

alt text

I would expect this to create a field titled Event_Detail, that it would represent the length and that they would be displayed with the table command, but that is not the case here.

I'm sure I am missing something simple.

0 Karma
1 Solution

jpolcari
Communicator

Try placing the field name within quotes: len("logdata.processInfo.ProcessName")

View solution in original post

jpolcari
Communicator

Try placing the field name within quotes: len("logdata.processInfo.ProcessName")

somesoni2
Revered Legend

Dot (.) is a special char in eval (for concatenation) so you would need to quote it, single and double quotes both will work.

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