Hi,
got a similar problem at an customer and worked yesterday on a solution based on your Question and the first answer, on a testsetup.
The Splunk Server has a different system time than the sender (see in the lower half)
The JSON is send by following python line:
response = urllib2.urlopen(req, json.dumps({"sourcetype":"indoor_tph", "source":"", "host":"", "event": {"temperature": str(sense.get_temperature()-7.0), "timestamp": str(datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S.%f')), "pressure": str(sense.get_pressure()), "humidity": str(sense.get_humidity())}}))
The props.conf entry for the upper half example looks:
[indoor_tph]
INDEXED_EXTRACTIONS = JSON
TIME_PREFIX = "timestamp": "
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%6N
TZ = UTC
Hope this will help other splunkers with the same or similar problems.
Kind Regards
SierraX
... View more