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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...