<?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: Can I change _time based on time within data that is ingested in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-I-change-time-based-on-time-within-data-that-is-ingested/m-p/537340#M151898</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230905"&gt;@janesh22&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can use TIME_PREFIX and TIME_FORMAT like below;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[report_sourcetype]
TIME_PREFIX = ReportID\=\w\d{3}_
TIME_FORMAT = %m%d%y.%H%M&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 27 Jan 2021 04:32:12 GMT</pubDate>
    <dc:creator>scelikok</dc:creator>
    <dc:date>2021-01-27T04:32:12Z</dc:date>
    <item>
      <title>Can I change _time based on time within data that is ingested</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-change-time-based-on-time-within-data-that-is-ingested/m-p/537338#M151896</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a report that is ingested in splunk. Due to the report format not correctly ingested by splunk, I had done some preprocessing of the report and named reportfile.rep and picked up by splunk every 15 mins. This report is delayed almost 40 minutes(as the processing and transferring of data takes time) , so the time stamp indexed by splunk is around 40 minutes delayed from the report. example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;sample file:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;reportfile.rep&lt;/P&gt;&lt;P&gt;ReportID=a004_012721.1400,Queue=xxx,AgentList=xxxx&lt;/P&gt;&lt;P&gt;ReportID=a004_012721.1400,Queue=xxx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;_time =&amp;nbsp;&lt;SPAN&gt;2021-01-27T14:40:04.000+11:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So report was for 14:00 however _time is 14:40.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway I can overwrite _time value to be picked up from the report file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had seen some examples in splunk answers using transforms.conf and props.conf. However this is based on using the actual file name and not the content inside the file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 03:57:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-change-time-based-on-time-within-data-that-is-ingested/m-p/537338#M151896</guid>
      <dc:creator>janesh22</dc:creator>
      <dc:date>2021-01-27T03:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change _time based on time within data that is ingested</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-change-time-based-on-time-within-data-that-is-ingested/m-p/537340#M151898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230905"&gt;@janesh22&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can use TIME_PREFIX and TIME_FORMAT like below;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[report_sourcetype]
TIME_PREFIX = ReportID\=\w\d{3}_
TIME_FORMAT = %m%d%y.%H%M&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Jan 2021 04:32:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-change-time-based-on-time-within-data-that-is-ingested/m-p/537340#M151898</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-01-27T04:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change _time based on time within data that is ingested</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-change-time-based-on-time-within-data-that-is-ingested/m-p/537345#M151901</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So do I just add these in props.conf and restart splunk to enable it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 05:18:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-change-time-based-on-time-within-data-that-is-ingested/m-p/537345#M151901</guid>
      <dc:creator>janesh22</dc:creator>
      <dc:date>2021-01-27T05:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change _time based on time within data that is ingested</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-change-time-based-on-time-within-data-that-is-ingested/m-p/537347#M151903</link>
      <description>&lt;P&gt;You're welcome&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230905"&gt;@janesh22&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you are running standalone Splunk it should be enough. If you are getting these reports using Universal Formarder, you should put this to indexers.&lt;/P&gt;&lt;P&gt;Please do not forget to change stanza name "report_sourcetype" with your real sourcetype.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 05:26:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-change-time-based-on-time-within-data-that-is-ingested/m-p/537347#M151903</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-01-27T05:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change _time based on time within data that is ingested</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-change-time-based-on-time-within-data-that-is-ingested/m-p/537516#M151966</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had added the below to proc.conf with the sourcetype name, however it still does not seem to be picking up the time . I had tried restarting the splunk as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this show up in any logs , if it is actually checking the conf file ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Janesh&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 01:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-change-time-based-on-time-within-data-that-is-ingested/m-p/537516#M151966</guid>
      <dc:creator>janesh22</dc:creator>
      <dc:date>2021-01-28T01:11:25Z</dc:date>
    </item>
  </channel>
</rss>

