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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...