<?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 an incorrect time value? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-an-incorrect-time-value/m-p/305021#M57510</link>
    <description>&lt;P&gt;You need this setting, too:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%9N%z
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Mar 2017 03:49:37 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-03-30T03:49:37Z</dc:date>
    <item>
      <title>How to correct an incorrect time value?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-an-incorrect-time-value/m-p/305019#M57508</link>
      <description>&lt;P&gt;I have the following event being sent from a Universal Forwarder (UF) syslog server to a standalone instance of Splunk: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;4656Open Object101.3CIFS000x8020000000000000Audit SuccessSecurityc5e81075-f14f-11e3-9b1e-123478563412/cd4c5993-11b0-11e4-92a9-123478563412134.82.79.10S-1-5-21-2136110353-913448559-1712093940-13349falseBUCKNELLleisnhth-aSecurityFile00000000000466;00;015ce358;514e6b60(netspace_departments);/isr/public/www2/bu_only/AICT/images/oversize/IRM195.jpg%%4423 %%1538 2080Read Attributes; Read ACL;  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The data is obviously in an XML format. I created a subdirectory within $SPLUNK_HOME/etc/deployment-apps/IA-naaudit and in the default dir I have an inputs.conf: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/rsyslogs/Netapp/audit_svm_netspace_last.xml] 
index = netapp 
sourcetype = audit 
_TCP_ROUTING = dev_splunk 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and an outputs.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:dev_splunk] 
server = sptest:9996 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I manually replicated these dirs and files on the UF in /opt/splunkforwarder/etc/apps/ &lt;/P&gt;

&lt;P&gt;I am now receiving the event data shown above. &lt;/P&gt;

&lt;P&gt;On the standalone instance I created the dir $SPLUNK_HOME/etc/deployment-apps/TA-naaudit and in the local dir I created &lt;BR /&gt;
props.conf: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[netapp] 
KV_MODE = xml 
TIME_PREFIX = \ntscripts\&amp;lt; 
DEST_KEY = queue 
FORMAT = nullQueue 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is my problem: from the event you can see that it should have the timestamp "2017-03-27T16:18:55.218021000Z". When I do a search on index=netapp this event (along with a gazillion others) it gets the time stamp "3/27/17 12:40:40.000 PM" which is incorrect. &lt;/P&gt;

&lt;P&gt;Also, I'm trying to drop the events with the user "ntscripts" but they show up in the search as well. &lt;/P&gt;

&lt;P&gt;Can you tell me where I'm going wrong? &lt;/P&gt;

&lt;P&gt;Thanks, &lt;BR /&gt;
Mike&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 18:24:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-an-incorrect-time-value/m-p/305019#M57508</guid>
      <dc:creator>dahlberg</dc:creator>
      <dc:date>2017-03-29T18:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to correct an incorrect time value?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-an-incorrect-time-value/m-p/305020#M57509</link>
      <description>&lt;P&gt;The directory $SPLUNK_HOME/etc/deployment-apps is for storing the deployment app that you push if your current server is a deployment server. Since you copied the app IA-naaudit with inputs.conf manually on UF, that was fine. You need to place the $SPLUNK_HOME/etc/deployment-apps/TA-naaudit in $SPLUNK_HOME/etc/apps/TA-naaudit directory, place from where your standalone Splunk instance will read/load the configuration.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:25:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-an-incorrect-time-value/m-p/305020#M57509</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T13:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to correct an incorrect time value?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-an-incorrect-time-value/m-p/305021#M57510</link>
      <description>&lt;P&gt;You need this setting, too:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%9N%z
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Mar 2017 03:49:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-an-incorrect-time-value/m-p/305021#M57510</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-30T03:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to correct an incorrect time value?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-an-incorrect-time-value/m-p/305022#M57511</link>
      <description>&lt;P&gt;Thanks.  I used btool and found I wasn't loading that particular props.conf file.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 14:06:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correct-an-incorrect-time-value/m-p/305022#M57511</guid>
      <dc:creator>dahlberg</dc:creator>
      <dc:date>2017-03-30T14:06:56Z</dc:date>
    </item>
  </channel>
</rss>

