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!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...