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!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...