Splunk Search

Datamodel with spaces in field names?

szabados
Communicator

I created a datamodel from a source, which had spaces in the field names, but field were automatically created with the same names, just omitting the spaces. Both were shown when at the Add Auto-Extracted Field window, like this:
"Field Name" (original)
"FieldName" (automatically created)

I moved my app to another search head, but I can't create the same datamodel, because of the spaces ...
I get the " Field Name can not contain whitespace, double quotes, single quotes, curly braces or asterisks. " error message.

How to fix this ?

1 Solution

szabados
Communicator

The issue was on my side...I forgot that in my props.conf I've explicitly defined the header to use, that's why I had field names without spaces.

View solution in original post

0 Karma

szabados
Communicator

The issue was on my side...I forgot that in my props.conf I've explicitly defined the header to use, that's why I had field names without spaces.

0 Karma

kishorksudha
Explorer

Anyone could find a solution to this

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 ...