<?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: sourcetype TIME_FORMAT changed in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-TIME-FORMAT-changed/m-p/496013#M84599</link>
    <description>&lt;P&gt;@gballanti you're welcome! &lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2019 14:05:43 GMT</pubDate>
    <dc:creator>DavidHourani</dc:creator>
    <dc:date>2019-12-03T14:05:43Z</dc:date>
    <item>
      <title>sourcetype TIME_FORMAT changed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-TIME-FORMAT-changed/m-p/496008#M84594</link>
      <description>&lt;P&gt;hello to everyone,&lt;/P&gt;

&lt;P&gt;the monthly logs received from the  ivr has changed the time format. Until now it was %d/%m%/Y right now it is %m/%d/%Y .&lt;BR /&gt;
Is it possible to modify the TIME_FORMAT so the new data will be recognized leaving the old ones unchanged  or a global re-index for all logs is needed ? &lt;/P&gt;

&lt;P&gt;Thanks in advanced&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 07:57:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-TIME-FORMAT-changed/m-p/496008#M84594</guid>
      <dc:creator>gballanti</dc:creator>
      <dc:date>2019-12-03T07:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: sourcetype TIME_FORMAT changed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-TIME-FORMAT-changed/m-p/496009#M84595</link>
      <description>&lt;P&gt;Hi @gballanti,&lt;/P&gt;

&lt;P&gt;Time extraction occurs at index time which means that the &lt;CODE&gt;_time&lt;/CODE&gt; is an indexed field. By definition when you change the configuration of such a field only newly indexed fields will show change. Older logs will keep the originally defined format.&lt;/P&gt;

&lt;P&gt;This works at your advantage because it's exactly what you're looking for. So all you have to do is make sure you set your &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;where the data gets indexed (Indexers or HF depending on your setup). Then all new data will adapt to that new format.&lt;/P&gt;

&lt;P&gt;Let me know if that helps.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 12:12:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-TIME-FORMAT-changed/m-p/496009#M84595</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-12-03T12:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: sourcetype TIME_FORMAT changed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-TIME-FORMAT-changed/m-p/496010#M84596</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;

&lt;P&gt;thank you for the detailed answer.&lt;/P&gt;

&lt;P&gt;I have just a trouble about the indexed data (old and new) because the chart built on this data is grouped by quarter. In this last quarter will have the indexed date (_time) with month and day inverted.&lt;/P&gt;

&lt;P&gt;Is it able to understand the right date ? For example 11/10 with old log means 11 october while with new log means 10 november, those situation a recognized and managed ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 12:46:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-TIME-FORMAT-changed/m-p/496010#M84596</guid>
      <dc:creator>gballanti</dc:creator>
      <dc:date>2019-12-03T12:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: sourcetype TIME_FORMAT changed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-TIME-FORMAT-changed/m-p/496011#M84597</link>
      <description>&lt;P&gt;your old data is indexed with the previously defined &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; so when your new data arrives under the new &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; the &lt;CODE&gt;_time&lt;/CODE&gt; field will be extracted properly so you will not have any issues charting over both quarters.&lt;/P&gt;

&lt;P&gt;You will only face issues if you have already indexed your new data with old &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;. In that case the only way to change the format is to delete then reindex this data because as I mentioned in the answer &lt;CODE&gt;_time&lt;/CODE&gt; is an index time field so it's not something you can change after indexing. &lt;/P&gt;

&lt;P&gt;Does that answer your question ? Let me know if it's not clear enough, happy to clarify &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 13:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-TIME-FORMAT-changed/m-p/496011#M84597</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-12-03T13:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: sourcetype TIME_FORMAT changed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-TIME-FORMAT-changed/m-p/496012#M84598</link>
      <description>&lt;P&gt;Thanks David, it is just what I wanted like to hear. I haven't indexed the new logs yet.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 14:02:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-TIME-FORMAT-changed/m-p/496012#M84598</guid>
      <dc:creator>gballanti</dc:creator>
      <dc:date>2019-12-03T14:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: sourcetype TIME_FORMAT changed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-TIME-FORMAT-changed/m-p/496013#M84599</link>
      <description>&lt;P&gt;@gballanti you're welcome! &lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 14:05:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-TIME-FORMAT-changed/m-p/496013#M84599</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-12-03T14:05:43Z</dc:date>
    </item>
  </channel>
</rss>

