<?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 from XML multivalue in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366813#M66687</link>
    <description>&lt;P&gt;still nothing. How can I see error log or something so I can see what I need to search. When I change props.conf is that real time change in Search?&lt;BR /&gt;
I also tried to add - KV_MODE=xml and that will give me root.day, root.month but I simply not getting timestamp from xml. &lt;BR /&gt;
do I need to TIME_FORMAT &amp;lt;\/day&amp;gt; or I just need to format value\n value\n value ...&lt;BR /&gt;
How can I see what's I am doing wrong?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:59:39 GMT</pubDate>
    <dc:creator>jbanhome</dc:creator>
    <dc:date>2020-09-29T13:59:39Z</dc:date>
    <item>
      <title>timestamp from XML multivalue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366805#M66679</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;

&lt;P&gt;I am new to Splunk and I have task where I need to configure timestamp from XML file. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;root&amp;gt;
    &amp;lt;day&amp;gt;11&amp;lt;/day&amp;gt;
    &amp;lt;month&amp;gt;11&amp;lt;/month&amp;gt;   
    &amp;lt;year&amp;gt;17&amp;lt;/year&amp;gt;
    &amp;lt;time&amp;gt;123055&amp;lt;time&amp;gt;
    … 
&amp;lt;/root&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do you have any hint how to configure this. &lt;/P&gt;

&lt;P&gt;If I understand this correctly I must use transforms.conf to parse day, month, year and time into timestamp because with timestamp I cannot take date from multi-value?&lt;BR /&gt;
And then after trasform I can use something like %d%m%y %H%M%S&lt;/P&gt;

&lt;P&gt;You dont need to write regex or anything, please just point me into right direction so I can try to figure it out. &lt;/P&gt;

&lt;P&gt;Thank you, &lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2017 17:45:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366805#M66679</guid>
      <dc:creator>jbanhome</dc:creator>
      <dc:date>2017-05-07T17:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp from XML multivalue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366806#M66680</link>
      <description>&lt;P&gt;Do you want to extract the timestamp at search time or index time?&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2017 23:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366806#M66680</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-05-07T23:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp from XML multivalue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366807#M66681</link>
      <description>&lt;P&gt;Try something like this in props.conf -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = day\&amp;gt;
TIME_FORMAT = %d\&amp;lt;\/day\&amp;gt;[\r\n\s]+\&amp;lt;month\&amp;gt;%m\&amp;lt;\/month\&amp;gt;[\r\n\s]+\&amp;lt;year\&amp;gt;%y\&amp;lt;\/year\&amp;gt;[\r\n\s]+\&amp;lt;time\&amp;gt;%H%M%S\&amp;lt;time\&amp;gt;
MAX_TIMESTAMP_LOOKAHEAD = 100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to do it at search time, then extract all time fields and then set the _time(with epoch time) field and it will reflect across all events.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 05:18:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366807#M66681</guid>
      <dc:creator>dineshraj9</dc:creator>
      <dc:date>2017-05-08T05:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp from XML multivalue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366808#M66682</link>
      <description>&lt;P&gt;unfortunately no luck. : (&lt;BR /&gt;
still \n and spaces give me problems. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 19:51:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366808#M66682</guid>
      <dc:creator>jbanhome</dc:creator>
      <dc:date>2017-05-08T19:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp from XML multivalue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366809#M66683</link>
      <description>&lt;P&gt;When I do it in WebUI and go with mouse over orange icon it's like &lt;BR /&gt;
cannot parse time 11\n    11\n    17 ....&lt;BR /&gt;
so now my question is, do I need to put &amp;lt;\/day&amp;gt;.... in TIME_FORMAT props? or I only need to escape \n4xWhitespace&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 20:22:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366809#M66683</guid>
      <dc:creator>jbanhome</dc:creator>
      <dc:date>2017-05-08T20:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp from XML multivalue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366810#M66684</link>
      <description>&lt;P&gt;I changed his response just a little bit.  Can you try it again?&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 23:01:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366810#M66684</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-05-08T23:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp from XML multivalue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366811#M66685</link>
      <description>&lt;P&gt;Unfortunatelly still no luck.&lt;/P&gt;

&lt;P&gt;props.conf is something like this&lt;BR /&gt;
 [test2xml]&lt;BR /&gt;
DATETIME_CONFIG = &lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 150&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
TIME_FORMAT = %d&amp;lt;\/day&amp;gt;[\r\n\s]+\%m&amp;lt;\/month&amp;gt;[\r\n\s]+\%y&amp;lt;\/year&amp;gt;[\r\n\s]+\%H%M%S\&lt;BR /&gt;
TIME_PREFIX = day&amp;gt;&lt;BR /&gt;
category = Custom&lt;BR /&gt;
pulldown_type = true&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366811#M66685</guid>
      <dc:creator>jbanhome</dc:creator>
      <dc:date>2020-09-29T13:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp from XML multivalue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366812#M66686</link>
      <description>&lt;P&gt;Here the TIME_FORMAT is missing start of the month tag and start of the year tag.&lt;BR /&gt;
It should be - &lt;CODE&gt;TIME_FORMAT = %d\&amp;lt;\/day\&amp;gt;[\r\n\s]+\&amp;lt;month\&amp;gt;%m\&amp;lt;\/month\&amp;gt;[\r\n\s]+\&amp;lt;year\&amp;gt;%y\&amp;lt;\/year\&amp;gt;[\r\n\s]+\&amp;lt;time\&amp;gt;%H%M%S&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Also, is Splunk breaking the events properly? A single event should be ....  and Splunk not be treating each line as an event.&lt;BR /&gt;
&lt;CODE&gt;LINE_BREAKER = ([\n\r]+)(?=\s*\&amp;lt;root\&amp;gt;)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:59:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366812#M66686</guid>
      <dc:creator>dineshraj9</dc:creator>
      <dc:date>2020-09-29T13:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp from XML multivalue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366813#M66687</link>
      <description>&lt;P&gt;still nothing. How can I see error log or something so I can see what I need to search. When I change props.conf is that real time change in Search?&lt;BR /&gt;
I also tried to add - KV_MODE=xml and that will give me root.day, root.month but I simply not getting timestamp from xml. &lt;BR /&gt;
do I need to TIME_FORMAT &amp;lt;\/day&amp;gt; or I just need to format value\n value\n value ...&lt;BR /&gt;
How can I see what's I am doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:59:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366813#M66687</guid>
      <dc:creator>jbanhome</dc:creator>
      <dc:date>2020-09-29T13:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp from XML multivalue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366814#M66688</link>
      <description>&lt;P&gt;this is real example \nwhitespacevalue...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;LOG&amp;gt;
 &amp;lt;DAY&amp;gt;09&amp;lt;/DAY&amp;gt;
 &amp;lt;MONTH&amp;gt;05&amp;lt;/MONTH&amp;gt;
 &amp;lt;YEAR&amp;gt;17&amp;lt;/YEAR&amp;gt;
 &amp;lt;TIME&amp;gt;102632&amp;lt;/TIME&amp;gt;
 &amp;lt;CC&amp;gt;0488444333809518&amp;lt;/CC&amp;gt;
 &amp;lt;AMOUNT&amp;gt;64957.01&amp;lt;/AMOUNT&amp;gt;
&amp;lt;/LOG&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 May 2017 09:34:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366814#M66688</guid>
      <dc:creator>jbanhome</dc:creator>
      <dc:date>2017-05-09T09:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp from XML multivalue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366815#M66689</link>
      <description>&lt;P&gt;Could you try changing the fields to captial and try -&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;TIME_FORMAT = %d\&amp;lt;\/DAY\&amp;gt;[\r\n\s]+\&amp;lt;MONTH\&amp;gt;%m\&amp;lt;\/MONTH\&amp;gt;[\r\n\s]+\&amp;lt;YEAR\&amp;gt;%y\&amp;lt;\/YEAR\&amp;gt;[\r\n\s]+\&amp;lt;TIME\&amp;gt;%H%M%S&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 10:52:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366815#M66689</guid>
      <dc:creator>dineshraj9</dc:creator>
      <dc:date>2017-05-09T10:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp from XML multivalue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366816#M66690</link>
      <description>&lt;P&gt;sure but timestamp values still none. &lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 11:04:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366816#M66690</guid>
      <dc:creator>jbanhome</dc:creator>
      <dc:date>2017-05-09T11:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp from XML multivalue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366817#M66691</link>
      <description>&lt;P&gt;I think I'll just give up with this hint as from 1000 examples none of it's works for me. Always in WebUI \r\n\s. Above examples does not works also. &lt;/P&gt;

&lt;P&gt;props&lt;BR /&gt;
LINE_BREAKER = ([\n\r]+)(?=\s*)&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 65&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
TIME_FORMAT = %d&amp;lt;\/DAY&amp;gt;[\r\n\s]+\%m&amp;lt;\/MONTH&amp;gt;[\r\n\s]+\%y&amp;lt;\/YEAR&amp;gt;[\r\n\s]+\%H%M%S&lt;BR /&gt;
TIME_PREFIX = DAY&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:01:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366817#M66691</guid>
      <dc:creator>jbanhome</dc:creator>
      <dc:date>2020-09-29T14:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp from XML multivalue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366818#M66692</link>
      <description>&lt;P&gt;Quick Update for Splunk 7.1.0.&lt;/P&gt;

&lt;P&gt;To get the Time_Format to extract a time stamp in 7.1.0 you can use &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129329"&gt;@dineshraj9&lt;/a&gt; answer if you lose the escape characters ().&lt;/P&gt;

&lt;P&gt;A colleague and I were trying to extract a timestamp across multiple xml tags:&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;fiveminute id="28"&amp;gt;&amp;lt;date&amp;gt;&amp;lt;year&amp;gt;2018&amp;lt;/year&amp;gt;&amp;lt;month&amp;gt;05&amp;lt;/month&amp;gt;&amp;lt;day&amp;gt;22&amp;lt;/day&amp;gt;&amp;lt;/date&amp;gt;&amp;lt;time&amp;gt;&amp;lt;hour&amp;gt;17&amp;lt;/hour&amp;gt;&amp;lt;minute&amp;gt;05&amp;lt;/minute&amp;gt;&amp;lt;/time&amp;gt;&amp;lt;rx&amp;gt;578489&amp;lt;/rx&amp;gt;&amp;lt;tx&amp;gt;1800555&amp;lt;/tx&amp;gt;&amp;lt;/fiveminute&amp;gt;&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;We were able to get the timestamp extracted in 7.1.0 with the following configurations:&lt;BR /&gt;
&lt;CODE&gt;[sourcetype]&lt;BR /&gt;
TIME_PREFIX = year\&amp;gt; &lt;BR /&gt;
TIME_FORMAT = %Y%m%d%H%M&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Notice that the escape character was used in the TIME_PREFIX, that value is still regex, but the TIME_FORMAT is not regex and therefore does not make use of the escape character.   &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:41:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-from-XML-multivalue/m-p/366818#M66692</guid>
      <dc:creator>cstump_splunk</dc:creator>
      <dc:date>2020-09-29T19:41:43Z</dc:date>
    </item>
  </channel>
</rss>

