<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to parse epoch time in SNMP log? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-epoch-time-in-SNMP-log/m-p/405316#M94766</link>
    <description>&lt;P&gt;Can you try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MAX_DAYS_HENCE = 10950
MAX_TIMESTAMP_LOOKAHEAD = 100000
NO_BINARY_CHECK = true
TIME_FORMAT = %s
TIME_PREFIX = TimeStamp\"\":
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;MAX_DAYS_HENCE is optional  , I just use this because the sample event you provide has future time.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:36:53 GMT</pubDate>
    <dc:creator>p_gurav</dc:creator>
    <dc:date>2020-09-29T19:36:53Z</dc:date>
    <item>
      <title>How to parse epoch time in SNMP log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-epoch-time-in-SNMP-log/m-p/405314#M94764</link>
      <description>&lt;P&gt;I would like to parse timestamp for Windows SNMP logs&lt;/P&gt;

&lt;P&gt;Below is log&lt;/P&gt;

&lt;P&gt;"{""MibList"":[{""OID"":""1.3.6.1.4.1.311.1.13.1.9999.1.0"",""Value"":""A process has exited.\r\n\r\nSubject:\r\n\tSecurity ID:\t\tS-1-5-18\r\n\tAccount Name:\t\tXXXX1$\r\n\tAccount Domain:XXXELEMENTS\r\n\tLogon ID:XXXX\r\n\r\nProcess Information:\r\n\tProcess ID:\t0x2338\r\n\tProcess Name:\tC:\Windows\System32\cmd.exe\r\n\tExit Status:\t0x3\r\n"",""Type"":4},{""OID"":""1.3.6.1.4.1.311.1.13.1.9999.2.0"",""Value"":""Unknown"",""Type"":4},{""OID"":""1.3.6.1.4.1.311.1.13.1.9999.3.0"",""Value"":""hostname.com"",""Type"":4},{""OID"":""1.3.6.1.4.1.311.1.13.1.9999.4.0"",""Value"":""8"",""Type"":4},{""OID"":""1.3.6.1.4.1.311.1.13.1.9999.5.0"",""Value"":""13313"",""Type"":4},{""OID"":""1.3.6.1.4.1.311.1.13.1.9999.6.0"",""Value"":""S-1-5-18"",""Type"":4},{""OID"":""1.3.6.1.4.1.311.1.13.1.9999.7.0"",""Value"":""XXX1$"",""Type"":4},{""OID"":""1.3.6.1.4.1.311.1.13.1.9999.8.0"",""Value"":""ELEMENTS"",""Type"":4},{""OID"":""1.3.6.1.4.1.311.1.13.1.9999.9.0"",""Value"":""0x3e7"",""Type"":4},{""OID"":""1.3.6.1.4.1.311.1.13.1.9999.10.0"",""Value"":""0x3"",""Type"":4},{""OID"":""1.3.6.1.4.1.311.1.13.1.9999.11.0"",""Value"":""0x2338"",""Type"":4},{""OID"":""1.3.6.1.4.1.311.1.13.1.9999.12.0"",""Value"":""C:\Windows\System32\cmd.exe"",""Type"":4}],""GenericTrap"":6,""AgentAddr"":""10.168.10.132"",""SpecificTrap"":4689,""Community"":""test"",""TimeStamp"":1683392789,""Enterprise"":""1.3.6.1.4.1.311.1.13.1.35.77.105.99.114.111.115.111.102.116.45.87.105.110.100.111.119.115.45.83.101.99.117.114.105.116.121.45.65.117.100.105.116.105.110.103"",""Version"":0,""PDUType"":164}"&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 13:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-epoch-time-in-SNMP-log/m-p/405314#M94764</guid>
      <dc:creator>Niraj_Shah</dc:creator>
      <dc:date>2018-05-21T13:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse epoch time in SNMP log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-epoch-time-in-SNMP-log/m-p/405315#M94765</link>
      <description>&lt;P&gt;I would suggest giving below link a read to understand how the timestamp recognition works in Splunk and what all props.conf attributes that can be set.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.0/Data/Configuretimestamprecognition"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.0/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For your log file, give this a try&lt;/P&gt;

&lt;P&gt;props.conf on Indexer/Heavy Forwarder whichever comes first in data flow&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yourSourceTypeNameHere]
...Line Breaking configuration...
TIME_PREFIX = Timestamp[^\:]+\:
TIME_FORMAT = %s
MAX_TIMESTAMP_LOOKAHEAD = 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Your timestamp is May 6, 2023, is this just a sample value or actual timestmap on the logs?&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 15:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-epoch-time-in-SNMP-log/m-p/405315#M94765</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-05-21T15:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse epoch time in SNMP log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-epoch-time-in-SNMP-log/m-p/405316#M94766</link>
      <description>&lt;P&gt;Can you try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MAX_DAYS_HENCE = 10950
MAX_TIMESTAMP_LOOKAHEAD = 100000
NO_BINARY_CHECK = true
TIME_FORMAT = %s
TIME_PREFIX = TimeStamp\"\":
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;MAX_DAYS_HENCE is optional  , I just use this because the sample event you provide has future time.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:36:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-epoch-time-in-SNMP-log/m-p/405316#M94766</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2020-09-29T19:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse epoch time in SNMP log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-epoch-time-in-SNMP-log/m-p/405317#M94767</link>
      <description>&lt;P&gt;This is actual timestamp so I need to refine it, i am unable to parse to current year&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 12:45:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-epoch-time-in-SNMP-log/m-p/405317#M94767</guid>
      <dc:creator>Niraj_Shah</dc:creator>
      <dc:date>2018-05-23T12:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse epoch time in SNMP log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-epoch-time-in-SNMP-log/m-p/405318#M94768</link>
      <description>&lt;P&gt;This is actual timestamp so I need to refine it, i am unable to parse to current year&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 12:45:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-epoch-time-in-SNMP-log/m-p/405318#M94768</guid>
      <dc:creator>Niraj_Shah</dc:creator>
      <dc:date>2018-05-23T12:45:36Z</dc:date>
    </item>
  </channel>
</rss>

