-
Notifications
You must be signed in to change notification settings - Fork 20
Splunk token invalid when using environment variables #27
Comments
The first diagnostic step should be to turn on debug logging and check those for clues. Does the token appear correctly when fluentd starts and prints its configuration? Worked for me...
|
Yes. Whether I use a variable or statically hardcode the token, it is correctly printed when Fluentd starts. The only difference is that when using a variable, Fluentd prints in the log that the Splunk Event Collector replied 403 Forbidden with a JSON reply that the token is invalid. Can you confirm the problem on your end? |
I don't have a Splunk instance to test with (much less the time), but I added a quick My next step would be to get a packet capture ( |
Capturing the packets for the token is not an option for I am using HTTPS to connect to the event collector. I suppose I can change it. I'll do more digging. |
When using environment variables to interpolate the fluent.conf configuration file, the Splunk token somehow becomes invalid. When I put the token statically into the configuration file without interpolation, the Splunk message is successfully accepted.
This doesn't work correctly when ensuring the token is in this variable:
This works fine
I am deploying using a derivative of the the alpine/v1.1.0-onbuild. The derivative is an image I built following the instructions in https://hub.docker.com/r/fluent/fluentd/ for the sole purpose of installing the Splunk gem. Can anyone confirm this problem?
The text was updated successfully, but these errors were encountered: