Splunk Search

Why are the table command and dropping values?

jaxxsplunk
Explorer

Summary:

When using the table command, values are dropped if { is the first character.

 
 
index=someindex host="VVV" source=somesource earliest=-24h  action
          NOT( ACTION ="SUMMARY" OR ACTION="RESULT")
          | dedup ID
        |rename ID as "Rcrds Prcssd To Date"
          | rename EVENT_DT as "Date Time" EVENT as "API EVENT"
          |convert ctime(_time) as RunDate timeformat="%m/%d/%Y %H:%M %p"
          |table ID,RunDate,ACTION, "API EVENT"
          |SORT -ID
 
When the "API EVENT" field has a { starting value, the remaining values are dropped.
If I replace 
|table ID,RunDate,ACTION, "API EVENT"
with
|fields ID,RunDate,ACTION, "API EVENT"
I see the { and the remaining values for "API EVENT"
 
Why is the table comm, and dropping values?
Labels (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

this sounds like a bug. Please report it to splunk support.

r. Ismo

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @jaxxsplunk,

only for your information, if you rename a field "| rename ID as "Rcrds Prcssd To Date"" the following " | sort -ID" doesn't run because the ID field isn't yet present!

Anyway, probably there's an error in "EVENT" field extraction.

We could help you, if you share a sample of your logs and the regex that you're using to extract the "EVENT" field to understand why sometimes your field extraction doesn't run.

The difference between table and fields is that table is a steaming command, instead fields is a non streming field, you can find a description of the command types at https://docs.splunk.com/Documentation/Splunk/8.2.4/Search/Typesofcommands 

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...