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

Commit

Permalink
fix: Add sourcetype to metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Nov 3, 2021
1 parent f890582 commit d3f393a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion splunk_connect_for_snmp_poller/manager/hec_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ def build_metric_data(
metric_name = json_val["metric_name"]
metric_value = json_val["_value"]
fields = {
"metric_name:" + metric_name: metric_value,
"sourcetype": "sc4snmp:metric",
"source": "sc4snmp",
f"metric_name:{metric_name}": metric_value,
EventField.FREQUENCY.value: ir.frequency_str,
}
if mib_enricher:
Expand Down

0 comments on commit d3f393a

Please sign in to comment.