Getting Data In

csv input file column name contains percent sign

grywiner51
Explorer

The .csv file that I am using as input has a column name that begins with a percent sign ("% Complete").  I just noticed that the indexer has been ignoring this column.  Even when I updated the sourcetype to use the first row as column names and it recognized the existence of the column (renamed it as simply "Complete"), it still won't show up as available to use in reports / dashboards.  Is there a way to get around this that does not involve changing the column name?  Thanks.

Labels (3)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Percent signs are not allowed in field names. Let Splunk strip out the '%' and use rename in dashboard and reports to add it in.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Percent signs are not allowed in field names. Let Splunk strip out the '%' and use rename in dashboard and reports to add it in.

---
If this reply helps you, Karma would be appreciated.
0 Karma

grywiner51
Explorer

Splunk wasn't doing that.  It was making believe that the field didn't exist.  But after reading your answer I began playing around with the import settings.  Once I changed the Delimiter Setting from Auto to specify field names on Line 1 Splunk did its thing.  Thanks.

0 Karma
Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...