<?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 Help with splunk search for unix timestamp? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-search-for-unix-timestamp/m-p/650034#M224739</link>
    <description>&lt;P&gt;I want to create an alert for which I am writing a search query but I am unable to filter using the time range picker.&amp;nbsp; since the events contains unix timestamp, I tried to convert but it fails during time range picker.&lt;BR /&gt;can you help me what is wrong here?&lt;BR /&gt;&lt;BR /&gt;Query:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=isilon sourcetype="emc:isilon:rest" "memory threshold"
| eval "Start Time" = strftime('events.start', "%d/%m/%Y %I:%M:%S %p")
| table "Start Time" events.message
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Ideally when I run this query with time range picker on June 12th then there should be NO results,&amp;nbsp; but the results contains June8th events(attachment provided)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinothkumark_0-1689098408447.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26209i34BAE8EC6BE68B12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinothkumark_0-1689098408447.png" alt="vinothkumark_0-1689098408447.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample event:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;{"events": {"devid": 8, "event": 400020001, "id": "8.794044", "lnn": 8, "message": "The SMB server (LWIO) is throttling due to current memory threshold settings. Current memory usage is 90% (23556 MB) and the memory threshold is set to 90%.", "resolve_time": 1686266238, "severity": "critical", "specifier": {"PercentMemoryUsed": 90, "PercentThreshold": 90, "ProcessMemConsumedInMB": 23556, "antime": 1686266290.600042, "devid": 8, "extime": 1686266290.490373, "kmtime": 1686266238.984405, "lnn": 8, "val": 90.0}, "time": 1686266238, "value": 90.0}, "timestamp": "2023-06-12 23:46:57", "node": "0.0.0.0", "namespace": "event"}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;{"events": {"devid": 8, "event": 400020001, "id": "8.793138", "lnn": 8, "message": "The SMB server (LWIO) is throttling due to current memory threshold settings. Current memory usage is 90% (23556 MB) and the memory threshold is set to 90%.", "resolve_time": 1686248504, "severity": "critical", "specifier": {"PercentMemoryUsed": 90, "PercentThreshold": 90, "ProcessMemConsumedInMB": 23556, "antime": 1686248570.519368, "devid": 8, "extime": 1686248570.447457, "kmtime": 1686248504.901769, "lnn": 8, "val": 90.0}, "time": 1686248504, "value": 90.0}, "timestamp": "2023-06-12 23:46:57", "node": "0.0.0.0", "namespace": "event"}&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2023 21:01:19 GMT</pubDate>
    <dc:creator>vinothkumark</dc:creator>
    <dc:date>2023-07-12T21:01:19Z</dc:date>
    <item>
      <title>Help with splunk search for unix timestamp?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-search-for-unix-timestamp/m-p/650034#M224739</link>
      <description>&lt;P&gt;I want to create an alert for which I am writing a search query but I am unable to filter using the time range picker.&amp;nbsp; since the events contains unix timestamp, I tried to convert but it fails during time range picker.&lt;BR /&gt;can you help me what is wrong here?&lt;BR /&gt;&lt;BR /&gt;Query:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=isilon sourcetype="emc:isilon:rest" "memory threshold"
| eval "Start Time" = strftime('events.start', "%d/%m/%Y %I:%M:%S %p")
| table "Start Time" events.message
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Ideally when I run this query with time range picker on June 12th then there should be NO results,&amp;nbsp; but the results contains June8th events(attachment provided)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinothkumark_0-1689098408447.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26209i34BAE8EC6BE68B12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinothkumark_0-1689098408447.png" alt="vinothkumark_0-1689098408447.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample event:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;{"events": {"devid": 8, "event": 400020001, "id": "8.794044", "lnn": 8, "message": "The SMB server (LWIO) is throttling due to current memory threshold settings. Current memory usage is 90% (23556 MB) and the memory threshold is set to 90%.", "resolve_time": 1686266238, "severity": "critical", "specifier": {"PercentMemoryUsed": 90, "PercentThreshold": 90, "ProcessMemConsumedInMB": 23556, "antime": 1686266290.600042, "devid": 8, "extime": 1686266290.490373, "kmtime": 1686266238.984405, "lnn": 8, "val": 90.0}, "time": 1686266238, "value": 90.0}, "timestamp": "2023-06-12 23:46:57", "node": "0.0.0.0", "namespace": "event"}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;{"events": {"devid": 8, "event": 400020001, "id": "8.793138", "lnn": 8, "message": "The SMB server (LWIO) is throttling due to current memory threshold settings. Current memory usage is 90% (23556 MB) and the memory threshold is set to 90%.", "resolve_time": 1686248504, "severity": "critical", "specifier": {"PercentMemoryUsed": 90, "PercentThreshold": 90, "ProcessMemConsumedInMB": 23556, "antime": 1686248570.519368, "devid": 8, "extime": 1686248570.447457, "kmtime": 1686248504.901769, "lnn": 8, "val": 90.0}, "time": 1686248504, "value": 90.0}, "timestamp": "2023-06-12 23:46:57", "node": "0.0.0.0", "namespace": "event"}&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 21:01:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-search-for-unix-timestamp/m-p/650034#M224739</guid>
      <dc:creator>vinothkumark</dc:creator>
      <dc:date>2023-07-12T21:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: splunk search query for unix timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-search-for-unix-timestamp/m-p/650061#M224743</link>
      <description>&lt;P&gt;Hello. We can't see what time Splunk thinks those events arrived in.&lt;/P&gt;&lt;P&gt;Do you have a props.conf for that sourcetype/source to tell the Splunk indexer which field you are using as the actual event time?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/propsconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/propsconf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;TIME_FORMAT=%s&amp;nbsp; &amp;nbsp; (for unixtime format)&lt;BR /&gt;&lt;SPAN&gt;TIME_PREFIX = time\":\s*\"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 21:48:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-search-for-unix-timestamp/m-p/650061#M224743</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2023-07-11T21:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: splunk search query for unix timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-search-for-unix-timestamp/m-p/650082#M224746</link>
      <description>&lt;P&gt;Not on the Indexer, but I can see the props on the Heavy forwarder.&lt;BR /&gt;&lt;BR /&gt;[PureStorage_REST]&lt;BR /&gt;INDEXED_EXTRACTIONS = JSON&lt;BR /&gt;TIMESTAMP_FIELDS = time,opened&lt;BR /&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%SZ&lt;BR /&gt;TZ = UTC&lt;BR /&gt;detect_trailing_nulls = auto&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;KV_MODE = none&lt;BR /&gt;AUTO_KV_JSON = false&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 05:21:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-search-for-unix-timestamp/m-p/650082#M224746</guid>
      <dc:creator>vinothkumark</dc:creator>
      <dc:date>2023-07-12T05:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: splunk search query for unix timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-search-for-unix-timestamp/m-p/650295#M224803</link>
      <description>&lt;P&gt;So in your query where you show the events, can you display the _time as well?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 20:45:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-search-for-unix-timestamp/m-p/650295#M224803</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2023-07-12T20:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: splunk search query for unix timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-search-for-unix-timestamp/m-p/650304#M224807</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=isilon sourcetype="emc:isilon:rest" "memory threshold"
| table _time _indextime "Start Time" events.message&lt;/LI-CODE&gt;&lt;P&gt;Can you pls run this and update us the results..&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you know if the UF, heavy forwarder and indexer are having same clock times(are they using NTP for time sync?)&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 00:28:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-search-for-unix-timestamp/m-p/650304#M224807</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2023-07-13T00:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: splunk search query for unix timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-search-for-unix-timestamp/m-p/650315#M224810</link>
      <description>&lt;P&gt;_time always picks the time range. for example if I set during June 8th, the results look like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinothkumark_0-1689223513515.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26241i61EF50F84CCDAA23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinothkumark_0-1689223513515.png" alt="vinothkumark_0-1689223513515.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;If I set the time range as JUne12th, the results look like,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinothkumark_1-1689223552213.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26242iF03958E1951112A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinothkumark_1-1689223552213.png" alt="vinothkumark_1-1689223552213.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 04:46:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-search-for-unix-timestamp/m-p/650315#M224810</guid>
      <dc:creator>vinothkumark</dc:creator>
      <dc:date>2023-07-13T04:46:08Z</dc:date>
    </item>
  </channel>
</rss>

