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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

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