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

Commit

Permalink
fix: timestamp (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
weliasz authored Apr 22, 2021
1 parent 6a61621 commit 86badb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions splunk_connect_for_snmp_traps/manager/hec_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging
import os
import threading
import time

import requests

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 86badb2

Please sign in to comment.