From 86badb235d4325ad1a582fb57f5a461cff9fac45 Mon Sep 17 00:00:00 2001 From: weliasz <77732905+weliasz@users.noreply.github.com> Date: Thu, 22 Apr 2021 11:02:54 +0200 Subject: [PATCH] fix: timestamp (#62) --- splunk_connect_for_snmp_traps/manager/hec_sender.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/splunk_connect_for_snmp_traps/manager/hec_sender.py b/splunk_connect_for_snmp_traps/manager/hec_sender.py index 3e91396..32fe227 100644 --- a/splunk_connect_for_snmp_traps/manager/hec_sender.py +++ b/splunk_connect_for_snmp_traps/manager/hec_sender.py @@ -2,6 +2,7 @@ import logging import os import threading +import time import requests @@ -33,6 +34,7 @@ def get_session(self): def post_data_to_thread_pool(self, host, variables_binds): data = { + "time": time.time(), "sourcetype": "sc4snmp:traps", "host": host, "index": self._args.index,