Splunk Search

Why is my name value pair being truncated after comma?

Splunkster45
Communicator

Here is what my log looks like:

    Date_filed=record_create_ts
    Grain=D
    Load_Frq=D
    Data=18,2014-05-20
    Number=3,2,169
    Date=2014-05-21,2014-05-22,2014-05-24 

When I run the following command on the log ...| table Number Date

I get the following:
alt text

I thought that I would get '3,2,169' instead of just '3'. Does any one know why this is happening?

Tags (2)
0 Karma

DalJeanis
Legend

try this command before the table command

| makemv "," Data Number Date

somesoni2
Revered Legend

Comma act as pair delimiter if the values are enclosed with double quote. You would need to setup custom field extractions for that type values or update your logging to enclose the values within double quotes.

0 Karma

Splunkster45
Communicator

Thanks, this is super helpful!

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