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!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...