<?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: How to get data into different variables on similar data lines in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-data-into-different-variables-on-similar-data-lines/m-p/456363#M78906</link>
    <description>&lt;P&gt;Thanks a lot !! It worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 13:21:56 GMT</pubDate>
    <dc:creator>arunslal</dc:creator>
    <dc:date>2019-08-19T13:21:56Z</dc:date>
    <item>
      <title>How to get data into different variables on similar data lines</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-data-into-different-variables-on-similar-data-lines/m-p/456361#M78904</link>
      <description>&lt;P&gt;I have got two timestamps. Can anyone please help me extract these 2 timestamps into different fields?&lt;/P&gt;

&lt;P&gt;08/02/2019 15:25:30.084 (ID=8238) (Line=4203) Sent -&amp;gt;PJ;1;2;;COMMON;rfscCpackageScan;Y;1;1;;0;Y;&amp;lt;-&lt;BR /&gt;
08/01/2019 10:38:51.377 (ID=45804) (Line=4229) Received -&amp;gt;PJ;81;S;SUCCESS;&amp;lt;-&lt;/P&gt;

&lt;P&gt;The first timestamp needs to be extracted into SentTime field  (this line has text Sent in it)&lt;BR /&gt;
The Second timestamp needs to be extracted into ReceivedTime field  (this line has text Received in it)&lt;/P&gt;

&lt;P&gt;Basically, I am looking for the below:&lt;BR /&gt;
SentTime  = 08/02/2019 15:25:30.084&lt;BR /&gt;
ReceivedTime  = 08/01/2019 10:38:51.377&lt;/P&gt;

&lt;P&gt;When I try to extract directly, both the timestamp goes into same field extraction... &lt;/P&gt;

&lt;P&gt;Thanks in advance for the help!&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
Arun&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-data-into-different-variables-on-similar-data-lines/m-p/456361#M78904</guid>
      <dc:creator>arunslal</dc:creator>
      <dc:date>2019-08-19T11:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get data into different variables on similar data lines</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-data-into-different-variables-on-similar-data-lines/m-p/456362#M78905</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?&amp;lt;SentTime&amp;gt;.*?)\s\(ID=\d+\)\s\(Line=\d+\)\sSent" | rex "(?&amp;lt;ReceivedTime&amp;gt;.*?)\s\(ID=\d+\)\s\(Line=\d+\)\sReceived" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Aug 2019 13:02:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-data-into-different-variables-on-similar-data-lines/m-p/456362#M78905</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-08-19T13:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get data into different variables on similar data lines</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-data-into-different-variables-on-similar-data-lines/m-p/456363#M78906</link>
      <description>&lt;P&gt;Thanks a lot !! It worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 13:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-data-into-different-variables-on-similar-data-lines/m-p/456363#M78906</guid>
      <dc:creator>arunslal</dc:creator>
      <dc:date>2019-08-19T13:21:56Z</dc:date>
    </item>
  </channel>
</rss>

