<?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 Extract a string from an existing field value in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Extract-a-string-from-an-existing-field-value/m-p/531893#M89461</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have the following event:&lt;/P&gt;&lt;DIV class="raw-event normal  wrap "&gt;[&lt;SPAN class="t"&gt;DefaultMessageHistory&lt;/SPAN&gt;[&lt;SPAN class="t"&gt;routeId=Receive&lt;/SPAN&gt;, &lt;SPAN class="t"&gt;node=to618&lt;/SPAN&gt;]], &lt;STRONG&gt;&lt;SPAN class="t"&gt;&lt;SPAN class="t a"&gt;CamelToEndpoint&lt;/SPAN&gt;=log://nl.vvv.kip.interfaces.timetellinboundtimecards.Receive&lt;/SPAN&gt;&lt;/STRONG&gt;?&lt;SPAN class="t"&gt;level=INFO&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="t"&gt;multiline=true&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="t"&gt;showAll=true&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="t"&gt;style=Fixed&lt;/SPAN&gt;} &lt;SPAN class="t"&gt;Headers&lt;/SPAN&gt; {&lt;SPAN class="t"&gt;breadcrumbId=ID-localhost-2206437765421-19-3&lt;/SPAN&gt;, &lt;SPAN class="t"&gt;CamelFileAbsolute=true&lt;/SPAN&gt;, &lt;SPAN class="t"&gt;CamelFileAbsolutePath=/data/bamba/Simebards&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;What I need is a regular expression to extract the word &lt;STRONG&gt;timetellinboundtimecards&lt;/STRONG&gt; and I want to rename it &lt;STRONG&gt;service-name.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;Furthermore, i need another regular expression to extract the word &lt;STRONG&gt;Receive (or Request or send or Failed)&amp;nbsp; &lt;/STRONG&gt;and rename it to &lt;STRONG&gt;status&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;Please let me know if you have the solution for this problem.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;Kind regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;K.C.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Thu, 03 Dec 2020 17:02:26 GMT</pubDate>
    <dc:creator>avkchare</dc:creator>
    <dc:date>2020-12-03T17:02:26Z</dc:date>
    <item>
      <title>Extract a string from an existing field value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-a-string-from-an-existing-field-value/m-p/531893#M89461</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have the following event:&lt;/P&gt;&lt;DIV class="raw-event normal  wrap "&gt;[&lt;SPAN class="t"&gt;DefaultMessageHistory&lt;/SPAN&gt;[&lt;SPAN class="t"&gt;routeId=Receive&lt;/SPAN&gt;, &lt;SPAN class="t"&gt;node=to618&lt;/SPAN&gt;]], &lt;STRONG&gt;&lt;SPAN class="t"&gt;&lt;SPAN class="t a"&gt;CamelToEndpoint&lt;/SPAN&gt;=log://nl.vvv.kip.interfaces.timetellinboundtimecards.Receive&lt;/SPAN&gt;&lt;/STRONG&gt;?&lt;SPAN class="t"&gt;level=INFO&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="t"&gt;multiline=true&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="t"&gt;showAll=true&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="t"&gt;style=Fixed&lt;/SPAN&gt;} &lt;SPAN class="t"&gt;Headers&lt;/SPAN&gt; {&lt;SPAN class="t"&gt;breadcrumbId=ID-localhost-2206437765421-19-3&lt;/SPAN&gt;, &lt;SPAN class="t"&gt;CamelFileAbsolute=true&lt;/SPAN&gt;, &lt;SPAN class="t"&gt;CamelFileAbsolutePath=/data/bamba/Simebards&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;What I need is a regular expression to extract the word &lt;STRONG&gt;timetellinboundtimecards&lt;/STRONG&gt; and I want to rename it &lt;STRONG&gt;service-name.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;Furthermore, i need another regular expression to extract the word &lt;STRONG&gt;Receive (or Request or send or Failed)&amp;nbsp; &lt;/STRONG&gt;and rename it to &lt;STRONG&gt;status&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;Please let me know if you have the solution for this problem.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;Kind regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;K.C.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Dec 2020 17:02:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-a-string-from-an-existing-field-value/m-p/531893#M89461</guid>
      <dc:creator>avkchare</dc:creator>
      <dc:date>2020-12-03T17:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a string from an existing field value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-a-string-from-an-existing-field-value/m-p/531913#M89464</link>
      <description>&lt;P&gt;What have you tried so far?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 19:40:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-a-string-from-an-existing-field-value/m-p/531913#M89464</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-12-03T19:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a string from an existing field value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-a-string-from-an-existing-field-value/m-p/531975#M89468</link>
      <description>&lt;P&gt;Hi Richgalloway,&lt;/P&gt;&lt;P&gt;To extract the word &lt;STRONG&gt;timetellinboundtimecards&lt;/STRONG&gt; I used the following search query:&lt;/P&gt;&lt;P&gt;index=vip-ota Logger=nl.vvv.kip.interfaces.TimetellInboundTimecards.*&lt;BR /&gt;| rex "CamelToEndpoint=log:\/\/nl\.vvv\.kip\.interfaces\.(?&amp;lt;serviceName&amp;gt;.*)+\?level"&lt;BR /&gt;| table _time, serviceName&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;K.C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 08:22:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-a-string-from-an-existing-field-value/m-p/531975#M89468</guid>
      <dc:creator>avkchare</dc:creator>
      <dc:date>2020-12-04T08:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a string from an existing field value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-a-string-from-an-existing-field-value/m-p/532025#M89472</link>
      <description>&lt;P&gt;Your regex was close.&amp;nbsp; This one worked for me with your sample event.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CamelToEndpoint=log:\/\/nl\.vvv\.kip\.interfaces\.(?&amp;lt;serviceName&amp;gt;[^\.]+)\.(?&amp;lt;status&amp;gt;[^\?]+)\?&lt;/LI-CODE&gt;&lt;P&gt;Are you familiar with the web site regex101.com for testing regular expressions?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 14:06:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-a-string-from-an-existing-field-value/m-p/532025#M89472</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-12-04T14:06:31Z</dc:date>
    </item>
  </channel>
</rss>

