<?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 Can you help me with a regex expression(multiple in one query)? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-a-regex-expression-multiple-in-one-query/m-p/398040#M115476</link>
    <description>&lt;P&gt;Trying to capture multiple groups, basically after the colon&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MacAddress                : 7A:AA:82:31:24:B1
Manufacturer              : VENDOR
Username                  : SC32131BN_user
IPNET                     : 11.412.111.
PasswordExpires           : 11/24/2018 3:44:48 PM
Version                   : CCCS   - 1423209
PhysicalDriveSpace        : 19.620432424279
TotalRAM                  : 3.84324242539
DHCPLeaseExpires          : 20432424324215.000000-300
DHCPServer                : 11.12.234.61
SID                       : S-1-5-21-432233414-414324275-1810497902-1001
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The name would be the field on the left. &lt;/P&gt;

&lt;P&gt;I tried something like this: | rex "MacAddress\s+:\s(?P[^\n]&lt;EM&gt;) | Manufacturer\s+:\s)(?P[^\n]&lt;/EM&gt;)"  but it doesn't appear to be giving me anything.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Oct 2018 20:57:53 GMT</pubDate>
    <dc:creator>JoshuaJohn</dc:creator>
    <dc:date>2018-10-02T20:57:53Z</dc:date>
    <item>
      <title>Can you help me with a regex expression(multiple in one query)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-a-regex-expression-multiple-in-one-query/m-p/398040#M115476</link>
      <description>&lt;P&gt;Trying to capture multiple groups, basically after the colon&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MacAddress                : 7A:AA:82:31:24:B1
Manufacturer              : VENDOR
Username                  : SC32131BN_user
IPNET                     : 11.412.111.
PasswordExpires           : 11/24/2018 3:44:48 PM
Version                   : CCCS   - 1423209
PhysicalDriveSpace        : 19.620432424279
TotalRAM                  : 3.84324242539
DHCPLeaseExpires          : 20432424324215.000000-300
DHCPServer                : 11.12.234.61
SID                       : S-1-5-21-432233414-414324275-1810497902-1001
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The name would be the field on the left. &lt;/P&gt;

&lt;P&gt;I tried something like this: | rex "MacAddress\s+:\s(?P[^\n]&lt;EM&gt;) | Manufacturer\s+:\s)(?P[^\n]&lt;/EM&gt;)"  but it doesn't appear to be giving me anything.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 20:57:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-a-regex-expression-multiple-in-one-query/m-p/398040#M115476</guid>
      <dc:creator>JoshuaJohn</dc:creator>
      <dc:date>2018-10-02T20:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with a regex expression(multiple in one query)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-a-regex-expression-multiple-in-one-query/m-p/398041#M115477</link>
      <description>&lt;P&gt;Try this :&lt;BR /&gt;
props.conf -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;yoursourcetypename&amp;gt;]
REPORT-xmlext = xml-extr
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Transforms.conf -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xml-extr]
REGEX =(\w+)\s*:\s([^\r\n]+)
FORMAT = $1::$2
MV_ADD = true
REPEAT_MATCH = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It will extract fields at index time&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 04:24:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-a-regex-expression-multiple-in-one-query/m-p/398041#M115477</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-10-03T04:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with a regex expression(multiple in one query)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-a-regex-expression-multiple-in-one-query/m-p/398042#M115478</link>
      <description>&lt;P&gt;Unfortunately do not have access to edit props.conf&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 18:58:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-a-regex-expression-multiple-in-one-query/m-p/398042#M115478</guid>
      <dc:creator>JoshuaJohn</dc:creator>
      <dc:date>2018-10-03T18:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with a regex expression(multiple in one query)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-a-regex-expression-multiple-in-one-query/m-p/398043#M115479</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;If this in only one event, like a multivalue field, I may have a solution for you :&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Replace every &lt;CODE&gt;:&lt;/CODE&gt; by &lt;CODE&gt;=&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;| rex field=yourfield mode=sed "s/:/=/"&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Rename  your field as &lt;CODE&gt;_raw&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;|rename yourfield as _raw&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Use &lt;CODE&gt;KV&lt;/CODE&gt; function&lt;BR /&gt;
&lt;CODE&gt;| KV&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;HR /&gt;

&lt;P&gt;Edit :&lt;/P&gt;

&lt;P&gt;Working example :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval data="MacAddress                : 7A:AA:82:31:24:B1,Manufacturer              : VENDOR,Username                  : SC32131BN_user,IPNET                     : 11.412.111.,PasswordExpires           : 11/24/2018 3:44:48 PM,Version                   : CCCS   - 1423209,PhysicalDriveSpace        : 19.620432424279,TotalRAM                  : 3.84324242539,DHCPLeaseExpires          : 20432424324215.000000-300,DHCPServer                : 11.12.234.61,SID                       : S-1-5-21-432233414-414324275-1810497902-1001"
| eval data = split(data,",")
| rex field=data mode=sed "s/:/=/"
| rename data as _raw
| KV
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Oct 2018 21:22:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-a-regex-expression-multiple-in-one-query/m-p/398043#M115479</guid>
      <dc:creator>KailA</dc:creator>
      <dc:date>2018-10-03T21:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with a regex expression(multiple in one query)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-a-regex-expression-multiple-in-one-query/m-p/398044#M115480</link>
      <description>&lt;P&gt;then try this in query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| extract kvdelim=":" pairdelim="\n"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Oct 2018 03:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-a-regex-expression-multiple-in-one-query/m-p/398044#M115480</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-10-04T03:55:01Z</dc:date>
    </item>
  </channel>
</rss>

