Getting Data In

Filter columns from CSV while monitoring

ankitarath2011
Path Finder

I am monitoring a folder with csv files with 400+ fields, out of which need only 50 fields for my dashboard.
Can we do something in Indexing time, so that it will not index the other 350 fields which are not required.

Removing from CSV is not possible. So, need to handle it in splunk only.

Please suggest.

0 Karma

woodcock
Esteemed Legend

You can do this with a carefully constructed SEDCMD setting but this may not work if you are using INDEXED_EXTRACTIONS=csv (then again, it may very well work). I know that it definitely will work if you are not using INDEXED_EXTRACTIONS.

0 Karma

KailA
Contributor

Hello,

I don't know if it's working for 400+ fields but I found this post for you : https://answers.splunk.com/answers/529138/filter-csv-logs-before-indexing.html

0 Karma

ankitarath2011
Path Finder

Ok, I will try this

0 Karma

KailA
Contributor

Let me know if it works

0 Karma
Get Updates on the Splunk Community!

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...

4 Ways the Splunk Community Helps You Prepare for .conf25

.conf25 is right around the corner, and whether you’re a first-time attendee or a seasoned Splunker, the ...