Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Commit

Permalink
fix: Update sourcetype for traps
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Feb 2, 2021
1 parent 440b7f5 commit 739528e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splunk_connect_for_snmp_traps/manager/trap_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def post_trap_to_hec(self, variables_binds):
splunk_trap_data = ",".join(
[str(key) + str(value) for key, value in variables_binds]
)
data = {"sourcetype": "trap-server", "event": splunk_trap_data}
data = {"sourcetype": "sc4snmp:trap", "event": splunk_trap_data}
logger.debug(
f"Posting trap to HEC using {endpoint} and tlsmode {self._hec_config.is_ssl_enabled}"
)
Expand Down

0 comments on commit 739528e

Please sign in to comment.