<?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 Index events with timestamp of previous day in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Index-events-with-timestamp-of-previous-day/m-p/527639#M88980</link>
    <description>&lt;P&gt;We have a report from a system that needs to be indexed into splunk on monthly basis. This report is generated on 1st day of every month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our requirement is to index events in this report on last day of previous month. So i want to index data from this report with timestamp of previous day.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 06:23:43 GMT</pubDate>
    <dc:creator>rajeshjlnt</dc:creator>
    <dc:date>2020-11-03T06:23:43Z</dc:date>
    <item>
      <title>Index events with timestamp of previous day</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-events-with-timestamp-of-previous-day/m-p/527639#M88980</link>
      <description>&lt;P&gt;We have a report from a system that needs to be indexed into splunk on monthly basis. This report is generated on 1st day of every month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our requirement is to index events in this report on last day of previous month. So i want to index data from this report with timestamp of previous day.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 06:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-events-with-timestamp-of-previous-day/m-p/527639#M88980</guid>
      <dc:creator>rajeshjlnt</dc:creator>
      <dc:date>2020-11-03T06:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Index events with timestamp of previous day</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-events-with-timestamp-of-previous-day/m-p/527645#M88982</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm not sure if I understood right your question, but you could get last month events by the next query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal earliest=-1mon@mon latest=-0mon@mon
| stats earliest(_time) as eTime latest(_time) as lTime
| eval eTime = strftime(eTime, "%F %T %z"), lTime = strftime(lTime, "%F %T %z")
| table eTime lTime&lt;/LI-CODE&gt;&lt;P&gt;To show reports day e.g. as last day of previous month just take day part of lTime (I suppose that you have events on it).&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 07:07:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-events-with-timestamp-of-previous-day/m-p/527645#M88982</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-11-03T07:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Index events with timestamp of previous day</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-events-with-timestamp-of-previous-day/m-p/527650#M88985</link>
      <description>&lt;P&gt;Thanks for your response&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;, but my question is to manipulate timestamp during indexing events.&lt;/P&gt;&lt;P&gt;During event indexing there are settings in sourcetype like Auto, Current, Advanced and Configuration file. I would like to know if there is a way to set timestamp to be (current time - 1 day)&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 07:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-events-with-timestamp-of-previous-day/m-p/527650#M88985</guid>
      <dc:creator>rajeshjlnt</dc:creator>
      <dc:date>2020-11-03T07:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Index events with timestamp of previous day</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-events-with-timestamp-of-previous-day/m-p/527654#M88987</link>
      <description>I haven't try this but there is INGEST_EVAL on transforms.conf (&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.0/Admin/Transformsconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.0/Admin/Transformsconf&lt;/A&gt;) which can help you.&lt;BR /&gt;r. Ismo</description>
      <pubDate>Tue, 03 Nov 2020 07:58:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-events-with-timestamp-of-previous-day/m-p/527654#M88987</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-11-03T07:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Index events with timestamp of previous day</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-events-with-timestamp-of-previous-day/m-p/527694#M88992</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;for showing right direction&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 12:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-events-with-timestamp-of-previous-day/m-p/527694#M88992</guid>
      <dc:creator>rajeshjlnt</dc:creator>
      <dc:date>2020-11-03T12:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Index events with timestamp of previous day</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-events-with-timestamp-of-previous-day/m-p/527695#M88993</link>
      <description>&lt;P&gt;I added following in props.conf and transforms.conf to get the desired results,&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;[timestamp-currenttime-oneday]&lt;BR /&gt;INGEST_EVAL = _time=time() - 86400&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;[mysourcetype]&lt;BR /&gt;TRANSFORMS-gettime = timestamp-currenttime-oneday&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 12:21:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-events-with-timestamp-of-previous-day/m-p/527695#M88993</guid>
      <dc:creator>rajeshjlnt</dc:creator>
      <dc:date>2020-11-03T12:21:23Z</dc:date>
    </item>
  </channel>
</rss>

