<?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 Scripted input with powershell - SplunkTime not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-powershell-SplunkTime-not-working/m-p/282652#M54028</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a PowerShell script that's being executed, but the event time is showing as the time the script runs.&lt;/P&gt;

&lt;P&gt;The script outputs objects like this:&lt;/P&gt;

&lt;P&gt;SplunkTime          : 12/05/2015 15:32:06&lt;BR /&gt;
RESEND_TYPE         : 12404&lt;BR /&gt;
SHOP_CODE           : 1535&lt;BR /&gt;
START_DAY           : 512&lt;BR /&gt;
START_NUMBER        : 75244&lt;BR /&gt;
END_DAY             : 512&lt;BR /&gt;
END_NUMBER          : 75245&lt;BR /&gt;
REQUEST_RECEIVED_AT : 12/05/2015 15:32:06&lt;/P&gt;

&lt;P&gt;I've added the SplunkTime, but it's not shown on the search and the time is time the run time:&lt;BR /&gt;
17/12/2015&lt;BR /&gt;
22:43:27.000  &lt;/P&gt;

&lt;P&gt;RESEND_TYPE="12404"&lt;BR /&gt;
SHOP_CODE="1535"&lt;BR /&gt;
START_DAY="512"&lt;BR /&gt;
START_NUMBER="97772"&lt;BR /&gt;
END_DAY="512"&lt;BR /&gt;
END_NUMBER="97773"&lt;BR /&gt;
REQUEST_RECEIVED_AT="12/05/2015 17:19:36"&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Mark&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 08:10:47 GMT</pubDate>
    <dc:creator>mark19632</dc:creator>
    <dc:date>2020-09-29T08:10:47Z</dc:date>
    <item>
      <title>Scripted input with powershell - SplunkTime not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-powershell-SplunkTime-not-working/m-p/282652#M54028</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a PowerShell script that's being executed, but the event time is showing as the time the script runs.&lt;/P&gt;

&lt;P&gt;The script outputs objects like this:&lt;/P&gt;

&lt;P&gt;SplunkTime          : 12/05/2015 15:32:06&lt;BR /&gt;
RESEND_TYPE         : 12404&lt;BR /&gt;
SHOP_CODE           : 1535&lt;BR /&gt;
START_DAY           : 512&lt;BR /&gt;
START_NUMBER        : 75244&lt;BR /&gt;
END_DAY             : 512&lt;BR /&gt;
END_NUMBER          : 75245&lt;BR /&gt;
REQUEST_RECEIVED_AT : 12/05/2015 15:32:06&lt;/P&gt;

&lt;P&gt;I've added the SplunkTime, but it's not shown on the search and the time is time the run time:&lt;BR /&gt;
17/12/2015&lt;BR /&gt;
22:43:27.000  &lt;/P&gt;

&lt;P&gt;RESEND_TYPE="12404"&lt;BR /&gt;
SHOP_CODE="1535"&lt;BR /&gt;
START_DAY="512"&lt;BR /&gt;
START_NUMBER="97772"&lt;BR /&gt;
END_DAY="512"&lt;BR /&gt;
END_NUMBER="97773"&lt;BR /&gt;
REQUEST_RECEIVED_AT="12/05/2015 17:19:36"&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:10:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-powershell-SplunkTime-not-working/m-p/282652#M54028</guid>
      <dc:creator>mark19632</dc:creator>
      <dc:date>2020-09-29T08:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted input with powershell - SplunkTime not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-powershell-SplunkTime-not-working/m-p/282653#M54029</link>
      <description>&lt;P&gt;What's in your props.conf?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 13:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-powershell-SplunkTime-not-working/m-p/282653#M54029</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2015-12-18T13:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted input with powershell - SplunkTime not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-powershell-SplunkTime-not-working/m-p/282654#M54030</link>
      <description>&lt;P&gt;Nothing related to this.&lt;/P&gt;

&lt;P&gt;I thought Splunk you pickup the time from the SplunkTime  variable as per:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Data/MonitorWindowsDatawithPowerShellscripts"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/Data/MonitorWindowsDatawithPowerShellscripts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 15:51:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-powershell-SplunkTime-not-working/m-p/282654#M54030</guid>
      <dc:creator>mark19632</dc:creator>
      <dc:date>2015-12-18T15:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted input with powershell - SplunkTime not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-powershell-SplunkTime-not-working/m-p/282655#M54031</link>
      <description>&lt;P&gt;Try renaming your SplunkTime variable to _time in PowerShell and see if that works.&lt;BR /&gt;
Splunk should pick up the time automatically, but what I can see from your output is that there are multiple times being returned, and that might lead to confusions.&lt;/P&gt;

&lt;P&gt;That's the reason you need a props.conf stanza for your sourcetype where you specify things like your time format, prefix, lookahead, etc.&lt;/P&gt;

&lt;P&gt;Take a look at this: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 16:03:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-powershell-SplunkTime-not-working/m-p/282655#M54031</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2015-12-18T16:03:31Z</dc:date>
    </item>
  </channel>
</rss>

