<?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: timestamp extraction from two places during index time within an event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-from-two-places-during-index-time-within-an/m-p/368981#M93182</link>
    <description>&lt;P&gt;@ankithreddy777, if  &lt;CODE&gt;time:-2017-05-05T*&lt;/CODE&gt; prefixes the time which you want Splunk to pick and also the date that you want to avoid you can use &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; regex to skip this. &lt;/P&gt;

&lt;P&gt;Try the following &lt;CODE&gt;props.conf&lt;/CODE&gt; settings (where 57 is number for characters to look ahead in order to find date. Based on sample data it  is &lt;CODE&gt;........abcxyz...abcxyz.....date:-&lt;/CODE&gt;. You can change 57 to a different number based on actual estimated number of characters.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=time:-\d{4}-\d{2}-\d{2}T\d*
MAX_TIMESTAMP_LOOKAHEAD=57
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 20 Mar 2018 20:02:28 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-03-20T20:02:28Z</dc:date>
    <item>
      <title>timestamp extraction from two places during index time within an event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-from-two-places-during-index-time-within-an/m-p/368979#M93180</link>
      <description>&lt;P&gt;I have an event like&lt;/P&gt;

&lt;P&gt;"abcabcabc....abc.........time:-2017-05-05T0*&lt;EM&gt;8:08:08.987&lt;/EM&gt;&lt;EM&gt;........abcxyz...abcxyz.....date:-&lt;/EM&gt;&lt;EM&gt;2017-05-03&lt;/EM&gt;*......"&lt;/P&gt;

&lt;P&gt;I need to assign timestamp to each event at index time only , where date should be extracted from date field above and time value should be extracted from timestamp field.&lt;/P&gt;

&lt;P&gt;Is there any possibility.&lt;BR /&gt;
If I need to use datatime_renamed.xml . May I know what changes to be made in file? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:36:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-from-two-places-during-index-time-within-an/m-p/368979#M93180</guid>
      <dc:creator>ankithreddy777</dc:creator>
      <dc:date>2020-09-29T18:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extraction from two places during index time within an event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-from-two-places-during-index-time-within-an/m-p/368980#M93181</link>
      <description>&lt;P&gt;Can you paste the sample event. You can achieve this by configuring TIME_PREFIX and MAX_TIMESTAMP_LOOKAHEAD in props.conf&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:35:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-from-two-places-during-index-time-within-an/m-p/368980#M93181</guid>
      <dc:creator>SuryaNittala</dc:creator>
      <dc:date>2020-09-29T18:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extraction from two places during index time within an event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-from-two-places-during-index-time-within-an/m-p/368981#M93182</link>
      <description>&lt;P&gt;@ankithreddy777, if  &lt;CODE&gt;time:-2017-05-05T*&lt;/CODE&gt; prefixes the time which you want Splunk to pick and also the date that you want to avoid you can use &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; regex to skip this. &lt;/P&gt;

&lt;P&gt;Try the following &lt;CODE&gt;props.conf&lt;/CODE&gt; settings (where 57 is number for characters to look ahead in order to find date. Based on sample data it  is &lt;CODE&gt;........abcxyz...abcxyz.....date:-&lt;/CODE&gt;. You can change 57 to a different number based on actual estimated number of characters.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=time:-\d{4}-\d{2}-\d{2}T\d*
MAX_TIMESTAMP_LOOKAHEAD=57
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Mar 2018 20:02:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-from-two-places-during-index-time-within-an/m-p/368981#M93182</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-20T20:02:28Z</dc:date>
    </item>
  </channel>
</rss>

