Skip to content

Commit 150e07d

Browse files
authored
add secret: true to hec_token config_param such that it is redacted in the configuration file output (#201)
Signed-off-by: Conor Evans <[email protected]>
1 parent 76c60c2 commit 150e07d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fluent/plugin/out_splunk_hec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class SplunkHecOutput < SplunkOutput
4040
config_param :full_url, :string, default: ''
4141

4242
desc 'The HEC token.'
43-
config_param :hec_token, :string
43+
config_param :hec_token, :string, secret: true
4444

4545
desc 'If a connection has not been used for this number of seconds it will automatically be reset upon the next use to avoid attempting to send to a closed connection. nil means no timeout.'
4646
config_param :idle_timeout, :integer, default: 5

0 commit comments

Comments
 (0)