<?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 How do I index one _time field from separated different time data? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-index-one-time-field-from-separated-different-time-data/m-p/392563#M70149</link>
    <description>&lt;P&gt;This is my data from with html tags. This is just single line.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03/&amp;lt;tr class="mtx" style="text-align:right;"&amp;gt;&amp;lt;td style="white-space:nowrap"&amp;gt;&amp;lt;div class="a_print"&amp;gt;&amp;lt;a href="hourly_s1.php?prec_no=44&amp;amp;block_no=47662&amp;amp;year=1980&amp;amp;month=03&amp;amp;day=1&amp;amp;view=p1"&amp;gt;1&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;997.3&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;1001.6&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;13.5&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;5.5&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;1.5&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;9.1&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;14.2&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;4.5&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt; 59&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt; 40&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;6.5&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;13.6&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0" style="text-align:center"&amp;gt;&amp;#150;k&amp;#150;k&amp;#144;¼&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;24.6&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0" style="text-align:center"&amp;gt;&amp;#150;k&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;--&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;--&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;--&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0" style="text-align:left"&amp;gt;&amp;#137;J&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0" style="text-align:left"&amp;gt;&amp;#141;~&amp;#144;
&amp;#130;È&amp;#130;µ&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The time of this data consists of three pieces of information: year=, month=, and date=.&lt;BR /&gt;
So, I just use custom DATETIME_CONFIG to ingest the data but it doesn't work. This is my created .xml file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;datetime&amp;gt;
  &amp;lt;define name="test" extract="year, month, day"&amp;gt;
    &amp;lt;text&amp;gt;&amp;lt;![CDATA[(?year\=(\d{4})&amp;amp;month\=(\d{2})&amp;amp;day\=(\d{1,2})]]&amp;gt;&amp;lt;/text&amp;gt;
  &amp;lt;/define&amp;gt;

  &amp;lt;timePatterns&amp;gt;
    &amp;lt;use name="test"/&amp;gt;
  &amp;lt;/timePatterns&amp;gt;
  &amp;lt;datePatterns&amp;gt;
    &amp;lt;use name="test"/&amp;gt;
  &amp;lt;/datePatterns&amp;gt;
&amp;lt;/datetime&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think there is no grammatical error because there was no error at splunk restarted.&lt;BR /&gt;
How do I index one _time field from three separated time data at index time?&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;</description>
    <pubDate>Sat, 04 Aug 2018 07:17:54 GMT</pubDate>
    <dc:creator>goji</dc:creator>
    <dc:date>2018-08-04T07:17:54Z</dc:date>
    <item>
      <title>How do I index one _time field from separated different time data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-index-one-time-field-from-separated-different-time-data/m-p/392563#M70149</link>
      <description>&lt;P&gt;This is my data from with html tags. This is just single line.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03/&amp;lt;tr class="mtx" style="text-align:right;"&amp;gt;&amp;lt;td style="white-space:nowrap"&amp;gt;&amp;lt;div class="a_print"&amp;gt;&amp;lt;a href="hourly_s1.php?prec_no=44&amp;amp;block_no=47662&amp;amp;year=1980&amp;amp;month=03&amp;amp;day=1&amp;amp;view=p1"&amp;gt;1&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;997.3&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;1001.6&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;13.5&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;5.5&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;1.5&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;9.1&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;14.2&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;4.5&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt; 59&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt; 40&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;6.5&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;13.6&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0" style="text-align:center"&amp;gt;&amp;#150;k&amp;#150;k&amp;#144;¼&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;24.6&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0" style="text-align:center"&amp;gt;&amp;#150;k&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;--&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;--&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0"&amp;gt;--&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0" style="text-align:left"&amp;gt;&amp;#137;J&amp;lt;/td&amp;gt;&amp;lt;td class="data_0_0" style="text-align:left"&amp;gt;&amp;#141;~&amp;#144;
&amp;#130;È&amp;#130;µ&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The time of this data consists of three pieces of information: year=, month=, and date=.&lt;BR /&gt;
So, I just use custom DATETIME_CONFIG to ingest the data but it doesn't work. This is my created .xml file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;datetime&amp;gt;
  &amp;lt;define name="test" extract="year, month, day"&amp;gt;
    &amp;lt;text&amp;gt;&amp;lt;![CDATA[(?year\=(\d{4})&amp;amp;month\=(\d{2})&amp;amp;day\=(\d{1,2})]]&amp;gt;&amp;lt;/text&amp;gt;
  &amp;lt;/define&amp;gt;

  &amp;lt;timePatterns&amp;gt;
    &amp;lt;use name="test"/&amp;gt;
  &amp;lt;/timePatterns&amp;gt;
  &amp;lt;datePatterns&amp;gt;
    &amp;lt;use name="test"/&amp;gt;
  &amp;lt;/datePatterns&amp;gt;
&amp;lt;/datetime&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think there is no grammatical error because there was no error at splunk restarted.&lt;BR /&gt;
How do I index one _time field from three separated time data at index time?&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 07:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-index-one-time-field-from-separated-different-time-data/m-p/392563#M70149</guid>
      <dc:creator>goji</dc:creator>
      <dc:date>2018-08-04T07:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I index one _time field from separated different time data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-index-one-time-field-from-separated-different-time-data/m-p/392564#M70150</link>
      <description>&lt;P&gt;Looks like your regex may have an issue.&lt;/P&gt;

&lt;P&gt;Try &lt;BR /&gt;
&amp;amp;year=(\d{4})&amp;amp;month=(\d{2})&amp;amp;day=(\d{1,2})&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 20:05:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-index-one-time-field-from-separated-different-time-data/m-p/392564#M70150</guid>
      <dc:creator>dcharboneau_spl</dc:creator>
      <dc:date>2018-08-07T20:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I index one _time field from separated different time data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-index-one-time-field-from-separated-different-time-data/m-p/392565#M70151</link>
      <description>&lt;P&gt;I use "&amp;amp;" instead of  "?" in front of year, but it doesn't work.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 09:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-index-one-time-field-from-separated-different-time-data/m-p/392565#M70151</guid>
      <dc:creator>goji</dc:creator>
      <dc:date>2018-08-10T09:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I index one _time field from separated different time data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-index-one-time-field-from-separated-different-time-data/m-p/392566#M70152</link>
      <description>&lt;P&gt;Your datetime.xml looks good to me. Please make sure to put these configurations on both source(forwarders) and destination (indexers).&lt;/P&gt;

&lt;P&gt;If nothing works, give this a try instead of datetime.xml&lt;/P&gt;

&lt;P&gt;Append below to your props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = year\=
TIME_FORMAT = %y&amp;amp;month=%d&amp;amp;day=%d
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Aug 2018 16:24:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-index-one-time-field-from-separated-different-time-data/m-p/392566#M70152</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-08-10T16:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I index one _time field from separated different time data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-index-one-time-field-from-separated-different-time-data/m-p/392567#M70153</link>
      <description>&lt;P&gt;nittala_surya,&lt;/P&gt;

&lt;P&gt;This data was a bit old, so I could read it by increasing the value of MAX_DAYS_AGO. &lt;/P&gt;

&lt;P&gt;Thank you!!!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:53:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-index-one-time-field-from-separated-different-time-data/m-p/392567#M70153</guid>
      <dc:creator>goji</dc:creator>
      <dc:date>2020-09-29T20:53:53Z</dc:date>
    </item>
  </channel>
</rss>

