<?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 Return string and number before and after equals sign in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Return-string-and-number-before-and-after-equals-sign/m-p/327330#M161743</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am new in splunk and i want to save the value in fields before and after =&lt;/P&gt;

&lt;P&gt;for example  events look like below &lt;BR /&gt;
rollnumber=34556&lt;BR /&gt;
class=12&lt;/P&gt;

&lt;P&gt;I want to return rollnumber and class in first field and the number after = in second field. &lt;/P&gt;

&lt;P&gt;base search | rex max_match=15 field=_raw "(?P)&lt;A href="https://community.splunk.com/?P" target="_blank"&gt;=&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;
 this doesnt work, both values are coming as space. &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:58:40 GMT</pubDate>
    <dc:creator>soumyajk</dc:creator>
    <dc:date>2020-09-29T18:58:40Z</dc:date>
    <item>
      <title>Return string and number before and after equals sign</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Return-string-and-number-before-and-after-equals-sign/m-p/327330#M161743</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am new in splunk and i want to save the value in fields before and after =&lt;/P&gt;

&lt;P&gt;for example  events look like below &lt;BR /&gt;
rollnumber=34556&lt;BR /&gt;
class=12&lt;/P&gt;

&lt;P&gt;I want to return rollnumber and class in first field and the number after = in second field. &lt;/P&gt;

&lt;P&gt;base search | rex max_match=15 field=_raw "(?P)&lt;A href="https://community.splunk.com/?P" target="_blank"&gt;=&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;
 this doesnt work, both values are coming as space. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:58:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Return-string-and-number-before-and-after-equals-sign/m-p/327330#M161743</guid>
      <dc:creator>soumyajk</dc:creator>
      <dc:date>2020-09-29T18:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Return string and number before and after equals sign</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Return-string-and-number-before-and-after-equals-sign/m-p/327331#M161744</link>
      <description>&lt;P&gt;Your regex seems to be incomplete, could you try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex max_match=15 field=_raw "(?P&amp;lt;field1&amp;gt;\w+)\=(?P&amp;lt;field2&amp;gt;\w+)" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Apr 2018 16:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Return-string-and-number-before-and-after-equals-sign/m-p/327331#M161744</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2018-04-11T16:01:39Z</dc:date>
    </item>
  </channel>
</rss>

