Getting Data In

Why are the individual records merging in single event in CSV monitoring?

rajim
Path Finder

I am facing a bizarre problem in csv file monitoring. I am monitoring a csv file from a server path. The records are being indexed. But sometimes, some records of the csv file is being merged into a single event. Attached is the configurations that I have used to on-board that data. Could someone please look into this and let me know how can I overcome this?

alt text

Below is the sample output that I'm getting now. The first line shows multiple records in a single event whereas the other two are individual records which are perfect.
alt text

0 Karma
1 Solution

rajim
Path Finder

Thank you everybody for your comments. But I got the answer and it's working.

In my case, the monitored file is in a server where UF is installed. I am on-boarding the data using UF. So I had deployed all the configuration files in that server that is in UF. But the parsing doesn't happen at UF. It only happens at HF or Indexer. That's why in my case the props.conf and transforms.conf was not in any use.
What I needed to do is to create an app for HF with the props.conf and transforms.conf and deploy that app to HF, thru which the data are flowing to Indexer from UF server.
So I have changed my original TA and kept the inputs.conf file only in that TA and deployed that into UF server. Then I created another TA with the props.conf and transforms.conf file and deployed this TA to HF.
Now indexing happens properly.
So in short - UF TA ---> only inputs.conf
HF TA ----> props.conf and transforms.conf

View solution in original post

0 Karma

rajim
Path Finder

Thank you everybody for your comments. But I got the answer and it's working.

In my case, the monitored file is in a server where UF is installed. I am on-boarding the data using UF. So I had deployed all the configuration files in that server that is in UF. But the parsing doesn't happen at UF. It only happens at HF or Indexer. That's why in my case the props.conf and transforms.conf was not in any use.
What I needed to do is to create an app for HF with the props.conf and transforms.conf and deploy that app to HF, thru which the data are flowing to Indexer from UF server.
So I have changed my original TA and kept the inputs.conf file only in that TA and deployed that into UF server. Then I created another TA with the props.conf and transforms.conf file and deployed this TA to HF.
Now indexing happens properly.
So in short - UF TA ---> only inputs.conf
HF TA ----> props.conf and transforms.conf

0 Karma

p_gurav
Champion

Can you try adding in props.conf below parameters:

LINE_BREAKER = ([\r\n]+)
0 Karma

rajim
Path Finder

This is a default behaviour. So should I add that?

0 Karma

somesoni2
Revered Legend

Yes please.

0 Karma

rajim
Path Finder

I have added this but it's still not working. 😞

0 Karma

p_gurav
Champion

Can you give sample events before indexing into splunk?

0 Karma

Richfez
SplunkTrust
SplunkTrust

Could you confirm there's actually the right characters at the end of each line?

In *nix, you should be able to do xxd <filename> | less

Look for the ".." between "lines" (it will no longer be at the end of lines so you'll have to hunt!) and figure out if it equates to 0d0a or only 0d or only 0a when it's on a line break that's problematic.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...