Getting Data In

Ignore first line

aleem
SplunkTrust
SplunkTrust

Hi,
I am importing custom CSV files. The heading are are the first line. What is the simplest way to ignore these headings? Which files to I need to edit?

Be the best version of you
Tags (1)
0 Karma

lguinn2
Legend

Take a look at this question, which is quite close to yours.

How to ignore the title line of the csv file in the result and display in a kv format

I don't think that the CHECK_FOR_HEADER = true suggestion will work, but the solution that uses a TRANSFORM will.

0 Karma

lguinn2
Legend

If you tell Splunk that the sourcetype of the file is "csv", I believe Splunk will take care of that for you, as well as extracting the fields.

0 Karma

aleem
SplunkTrust
SplunkTrust

Thanks, I tried that. Splunk recognises sourcetype as csv-2 and still indexes the headings

Be the best version of you
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...