Getting Data In

Why do I get "Invalid key in stanza [tcp-ssl://:1470] ... connection_host=dns your indexes and inputs are not internally consistent"?

Path Finder

Hello,

Our /opt/splunk/etc/apps/search/local/inputs.conf file on our forwarder contains:

[tcp-ssl://:1470]
connection_host=dns
sourcetype=apm_log
index=security_logs
queueSize=5MB

When starting the forwarder, I get:

checking for conf file problems:...
invalid key in stanza [tcp-ssl://:1470] in /opt/splunk/etc/apps/search/local/inputs.conf ...connection_host=dns
your indexes and inputs are not internally consistent.

btool output offers no additional information.

Can anyone offer advice?

Thank you so much.

msantich

0 Karma
1 Solution

Legend

Are you sure that your stanza syntax is correct? As I read inputs.conf.spec, I would think that it should be

[tcp-ssl:1470]

Second, are you sure that there are no special characters, etc. in the connection_host=dns line? Sometimes I find that people cut-and-paste and unusual characters end up in configuration files. Splunk won't like that.

View solution in original post

Contributor

splunktcp-ssl and tcp-ssl are two separate input stanza types. splunktcp-ssl is intended for receiving data from Splunk forwarders and allows the key connection_host. tcp-ssl is intended for encrypted communication coming in unparsed (e.g. from 3rd party systems) and does not allow the connection_host key.

Reference: Inputs.conf spec

Builder

I removed connection_host for tcp-ssl and Splunk no longer complained.

0 Karma

Legend

Are you sure that your stanza syntax is correct? As I read inputs.conf.spec, I would think that it should be

[tcp-ssl:1470]

Second, are you sure that there are no special characters, etc. in the connection_host=dns line? Sometimes I find that people cut-and-paste and unusual characters end up in configuration files. Splunk won't like that.

View solution in original post

Path Finder

Thank you all.

0 Karma

Path Finder

Thanks for the input Iguinn.

I tried each of your suggestions and I still get the same error on startup.
I changed the name of the stanza to tcp-ssl:1470 - still get the same error on startup.
I retyped the key-value pair "connection_host=dns" to ensure no special characters and I still get the error on startup.

thanks for your interest in my problem

msantich

0 Karma

Legend

I am a bit stumped. Perhaps Splunk Support could help?

0 Karma