Getting Data In

How to set line breaker after a certain number of fields has been read?

tamduong16
Contributor

I have a csv file which has 13 columns. For some reason Splunk sometime append the next line of the csv into the same event. How could I tell splunk to start a new event after the 13 field has been read?

0 Karma

DalJeanis
Legend

@tamduong - that is unlikely to be the correct question, based on your earlier problems with trying to remove quotes. Please post your current extract and transform settings, along with a few realistic samples of the data, with sensitive or confidential data masked, and we can help you get this all straightened out.

The accurate answer to THIS question might be to hard code an extraction with a certain number of commas, for example, discarding everything after the thirteenth comma. However, I suspect that we just need to correctly inform the system about how to handle quotes in your csv file.

0 Karma

cpetterborg
SplunkTrust
SplunkTrust

Can you provide some examples?

0 Karma

somesoni2
Revered Legend

What sourcetype have you selected? If you're using a custom sourcetype, what event parsing configuration (props.conf/transforms.conf) you've setup?

0 Karma

tamduong16
Contributor

i select csv as my sourcetype

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