<?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 correct the future time stamp issue occurring for certain sourcetype and host? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-the-future-time-stamp-issue-occurring-for-certain/m-p/357405#M65269</link>
    <description>&lt;P&gt;@Hemnaath&lt;/P&gt;

&lt;P&gt;[Script:ListeningPorts]&lt;BR /&gt;
TZ=US/Eastern (which ever timezone you want)&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2017 20:35:09 GMT</pubDate>
    <dc:creator>sbbadri</dc:creator>
    <dc:date>2017-09-25T20:35:09Z</dc:date>
    <item>
      <title>How to correct the future time stamp issue occurring for certain sourcetype and host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-the-future-time-stamp-issue-occurring-for-certain/m-p/357404#M65268</link>
      <description>&lt;P&gt;Hi All, Currently we are facing an issue with data being logged with future time stamp for certain host and source type.&lt;BR /&gt;&lt;BR /&gt;
In our environment we have nearly 1000 windows UF agent installed to pull the data from the remote windows machine and it is parsed into  5 indexer instance to index the data from remote devices.&lt;/P&gt;

&lt;P&gt;Out of 1000 Windows UF agent there are nearly 200 windows agents are logging with future time stamp with the source type = Script:ListeningPorts. &lt;/P&gt;

&lt;P&gt;I have used the below query to identify the list of any log sources that are logging with future time stamps&lt;/P&gt;

&lt;P&gt;I have used to this query to verify whether the host and source type are logging with future time stamp or not. &lt;/P&gt;

&lt;P&gt;index=win_svrs host=test1 sourcetype=Script:ListeningPorts earliest=+5m latest=+20y &lt;BR /&gt;
| where _indextime &amp;lt; _time&lt;BR /&gt;
| eval indextime=strftime(_indextime, "%+")&lt;/P&gt;

&lt;P&gt;Below is the partial configuration details : &lt;/P&gt;

&lt;P&gt;My input stanza configured in all remote windows machine via Deployment server.&lt;/P&gt;

&lt;P&gt;Scripted Input (See also wmi.conf)&lt;BR /&gt;
[script://.\bin\win_listening_ports.bat]&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;H2&gt;Run once per hour&lt;/H2&gt;

&lt;P&gt;interval = 3600&lt;BR /&gt;
sourcetype = Script:ListeningPorts&lt;BR /&gt;
index = win_svrs&lt;/P&gt;

&lt;P&gt;Props.conf &lt;BR /&gt;
[source::...win_listening_ports.bat]&lt;BR /&gt;
sourcetype = Script:ListeningPorts&lt;/P&gt;

&lt;P&gt;Data are parsed into all the indexer instance before indexing data into index.&lt;/P&gt;

&lt;P&gt;Props.conf &lt;/P&gt;

&lt;P&gt;Listening Ports&lt;BR /&gt;
[Script:ListeningPorts]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;/P&gt;

&lt;P&gt;Transforms.conf&lt;/P&gt;

&lt;P&gt;Listening Ports&lt;BR /&gt;
[dest_ip_for_listeningports]&lt;BR /&gt;
REGEX = dest_ip=[(\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})&lt;BR /&gt;
FORMAT = dest_ip::$1&lt;/P&gt;

&lt;P&gt;[kv_for_listeningports]&lt;BR /&gt;
DELIMS = " ", "="&lt;/P&gt;

&lt;P&gt;I am not sure how its working for other 800 servers with the correct time stamp with the same sourcetype and only for 200 servers we could see future time stamp. &lt;/P&gt;

&lt;P&gt;Kindly guide me know how to correct the future time stamp issue for 200 servers. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:56:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-the-future-time-stamp-issue-occurring-for-certain/m-p/357404#M65268</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T15:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to correct the future time stamp issue occurring for certain sourcetype and host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-the-future-time-stamp-issue-occurring-for-certain/m-p/357405#M65269</link>
      <description>&lt;P&gt;@Hemnaath&lt;/P&gt;

&lt;P&gt;[Script:ListeningPorts]&lt;BR /&gt;
TZ=US/Eastern (which ever timezone you want)&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 20:35:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-the-future-time-stamp-issue-occurring-for-certain/m-p/357405#M65269</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2017-09-25T20:35:09Z</dc:date>
    </item>
  </channel>
</rss>

