<?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 how to extract a field where there are different values, but which has not determined a value. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-a-field-where-there-are-different-values-but/m-p/474330#M140480</link>
    <description>&lt;P&gt;Hello everyone!&lt;/P&gt;

&lt;P&gt;how to extract a field where there are different values, but which has not determined a value.&lt;BR /&gt;
I need to extract the values from the "Domain" field excluding the "Corp" and "Corp - West" values, but show me the rest.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Domain = "Corp - West \ **OfficeABC \ Server *&lt;/EM&gt;"*&lt;BR /&gt;
&lt;EM&gt;Domain = "Corp \ **OfficeXYZ \ Workstations *&lt;/EM&gt;"*&lt;BR /&gt;
&lt;EM&gt;Domain = "&lt;/EM&gt;&lt;EM&gt;Default *&lt;/EM&gt;"*&lt;/P&gt;

&lt;P&gt;Ex. Log:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;2020-04-06 18:54:30.000,&lt;BR /&gt;
_time="2020-04-06 18:54:30.0", ComputarName="XYZ001", Usuer="userx",&lt;BR /&gt;
Domain="Corp\OfficeXYZ\Workstations\",&lt;BR /&gt;
IP="54.110.130.34"&lt;/P&gt;

&lt;P&gt;2020-04-06 18:59:10.000,&lt;BR /&gt;
_time="2020-04-06 18:59:10.0", ComputarName="XYZ101", Usuer="usera",&lt;BR /&gt;
Domain="Corp -&lt;BR /&gt;
West\OfficeABC\Servers\",&lt;BR /&gt;
IP="38.230.86.56"&lt;/P&gt;

&lt;P&gt;2020-04-06 19:09:30.000,&lt;BR /&gt;
_time="2020-04-06 19:09:30.0", ComputarName="XYZ201", Usuer="userb",&lt;BR /&gt;
Domain="Default\", IP="179.28.186.78"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;James._/\_&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:59:04 GMT</pubDate>
    <dc:creator>jfeitosa_real</dc:creator>
    <dc:date>2020-09-30T04:59:04Z</dc:date>
    <item>
      <title>how to extract a field where there are different values, but which has not determined a value.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-a-field-where-there-are-different-values-but/m-p/474330#M140480</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;

&lt;P&gt;how to extract a field where there are different values, but which has not determined a value.&lt;BR /&gt;
I need to extract the values from the "Domain" field excluding the "Corp" and "Corp - West" values, but show me the rest.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Domain = "Corp - West \ **OfficeABC \ Server *&lt;/EM&gt;"*&lt;BR /&gt;
&lt;EM&gt;Domain = "Corp \ **OfficeXYZ \ Workstations *&lt;/EM&gt;"*&lt;BR /&gt;
&lt;EM&gt;Domain = "&lt;/EM&gt;&lt;EM&gt;Default *&lt;/EM&gt;"*&lt;/P&gt;

&lt;P&gt;Ex. Log:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;2020-04-06 18:54:30.000,&lt;BR /&gt;
_time="2020-04-06 18:54:30.0", ComputarName="XYZ001", Usuer="userx",&lt;BR /&gt;
Domain="Corp\OfficeXYZ\Workstations\",&lt;BR /&gt;
IP="54.110.130.34"&lt;/P&gt;

&lt;P&gt;2020-04-06 18:59:10.000,&lt;BR /&gt;
_time="2020-04-06 18:59:10.0", ComputarName="XYZ101", Usuer="usera",&lt;BR /&gt;
Domain="Corp -&lt;BR /&gt;
West\OfficeABC\Servers\",&lt;BR /&gt;
IP="38.230.86.56"&lt;/P&gt;

&lt;P&gt;2020-04-06 19:09:30.000,&lt;BR /&gt;
_time="2020-04-06 19:09:30.0", ComputarName="XYZ201", Usuer="userb",&lt;BR /&gt;
Domain="Default\", IP="179.28.186.78"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;James._/\_&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:59:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-a-field-where-there-are-different-values-but/m-p/474330#M140480</guid>
      <dc:creator>jfeitosa_real</dc:creator>
      <dc:date>2020-09-30T04:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract a field where there are different values, but which has not determined a value.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-a-field-where-there-are-different-values-but/m-p/474331#M140481</link>
      <description>&lt;P&gt;If domain field is extracted in index then try this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=INDEXNAME | rex field=Domain "\"(Corp\s-\s\w+|Corp)?(?&amp;lt;domain&amp;gt;[\w\\\]+)\"" | fields Domain, domain
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;else,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=INDEXNAME | rex "Domain=\"(Corp\s-\s\w+|Corp)?(?&amp;lt;domain&amp;gt;[\w\\\]+)\"" | table _raw, domain
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Apr 2020 18:25:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-a-field-where-there-are-different-values-but/m-p/474331#M140481</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-04-09T18:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract a field where there are different values, but which has not determined a value.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-a-field-where-there-are-different-values-but/m-p/474332#M140482</link>
      <description>&lt;P&gt;I found the solution and I want to share it with you.&lt;/P&gt;

&lt;P&gt;Domain=\"(?:(?:Corp - West|Corp))?(?DomainNew&amp;gt;.*?)\"&lt;/P&gt;

&lt;P&gt;Worked perfectly.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;James\0/&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 22:04:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-a-field-where-there-are-different-values-but/m-p/474332#M140482</guid>
      <dc:creator>jfeitosa_real</dc:creator>
      <dc:date>2020-04-09T22:04:26Z</dc:date>
    </item>
  </channel>
</rss>

