<?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: Regex expression to extract fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-expression-to-extract-fields/m-p/572751#M199625</link>
    <description>&lt;P&gt;I was able to get this to work by changing w to S like this:&lt;/P&gt;&lt;P&gt;Target\s+(?&amp;lt;Target&amp;gt;\S+)&lt;/P&gt;&lt;P&gt;Thanks again for the help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 21:28:15 GMT</pubDate>
    <dc:creator>cgbsplunk</dc:creator>
    <dc:date>2021-10-27T21:28:15Z</dc:date>
    <item>
      <title>Regex expression to extract fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-expression-to-extract-fields/m-p/572722#M199618</link>
      <description>&lt;P&gt;I have two fields below that show up in our log files.&amp;nbsp; I used Splunk tool to create the Regex to extract the fields and at first I thought it worked until we had fields with different values that didn't extract.&amp;nbsp; Is there a simple Regex I can use to extract ObjectType and Domain Controller fields in example below?&amp;nbsp; Values should never have space so we can end value after first space.&lt;/P&gt;&lt;P&gt;ObjectType User&lt;/P&gt;&lt;P&gt;Domain Controller TSTETCDRS001&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 17:59:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-expression-to-extract-fields/m-p/572722#M199618</guid>
      <dc:creator>cgbsplunk</dc:creator>
      <dc:date>2021-10-27T17:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regex expression to extract fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-expression-to-extract-fields/m-p/572730#M199619</link>
      <description>&lt;P&gt;Show us a sample of your full events.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 19:19:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-expression-to-extract-fields/m-p/572730#M199619</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-27T19:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regex expression to extract fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-expression-to-extract-fields/m-p/572735#M199620</link>
      <description>&lt;P&gt;These are coming from windows event logs.&amp;nbsp; Some of the fields are in name value pairs and extract on their own but last 4 fields are the ones I need expressions for.&amp;nbsp; Here is example of entire message:&lt;/P&gt;&lt;P&gt;10/27/2021 02:39:17 PM&lt;BR /&gt;LogName=Application&lt;BR /&gt;EventCode=16117&lt;BR /&gt;EventType=0&lt;BR /&gt;ComputerName=XXXXXXXXX002.xxxx.com&lt;BR /&gt;User=NOT_TRANSLATED&lt;BR /&gt;Sid=S-1-5-21-114000000-41296648-3127784425-637889&lt;BR /&gt;SidType=0&lt;BR /&gt;SourceName=AdminSvc&lt;BR /&gt;Type=Information&lt;BR /&gt;RecordNumber=1502524&lt;BR /&gt;Keywords=Audit Success, Classic&lt;BR /&gt;TaskCategory=SetInfo&lt;BR /&gt;OpCode=None&lt;BR /&gt;Message=Action SetInfo&lt;BR /&gt;ObjectType Computer&lt;BR /&gt;AssistantAdmin xxxx\xxxxx&lt;BR /&gt;Target xxxxx\xxxx-xxxx$&lt;BR /&gt;Domain Controller xxxxxx06&lt;BR /&gt;AccountDisabled&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 19:46:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-expression-to-extract-fields/m-p/572735#M199620</guid>
      <dc:creator>cgbsplunk</dc:creator>
      <dc:date>2021-10-27T19:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regex expression to extract fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-expression-to-extract-fields/m-p/572738#M199621</link>
      <description>&lt;P&gt;And simple&lt;/P&gt;&lt;PRE&gt;Object\s+Type\s+(?&amp;lt;Object Type&amp;gt;\w+)&lt;/PRE&gt;&lt;P&gt;Doesn't work?&lt;/P&gt;&lt;P&gt;Same for the other one&lt;/P&gt;&lt;PRE&gt;Domain\s+Controller\s+(?&amp;lt;Domain Controller&amp;gt;\w+)&lt;/PRE&gt;&lt;P&gt;Check your regexes on &lt;A href="https://regex101.com" target="_blank"&gt;https://regex101.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 19:51:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-expression-to-extract-fields/m-p/572738#M199621</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-27T19:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regex expression to extract fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-expression-to-extract-fields/m-p/572748#M199624</link>
      <description>&lt;P&gt;Really appreciate the help.&amp;nbsp; That worked for those 2.&amp;nbsp; I also need one for Target.&amp;nbsp; I tried this:&lt;/P&gt;&lt;P&gt;Target\s+(?&amp;lt;Target&amp;gt;\w+)&lt;/P&gt;&lt;P&gt;But with a value of this:&lt;/P&gt;&lt;P&gt;Target ABCDE\test.user&lt;/P&gt;&lt;P&gt;I only get the ABCDE.&amp;nbsp; How do I change the expression to get the entire ABCDE\test.user&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 21:08:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-expression-to-extract-fields/m-p/572748#M199624</guid>
      <dc:creator>cgbsplunk</dc:creator>
      <dc:date>2021-10-27T21:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regex expression to extract fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-expression-to-extract-fields/m-p/572751#M199625</link>
      <description>&lt;P&gt;I was able to get this to work by changing w to S like this:&lt;/P&gt;&lt;P&gt;Target\s+(?&amp;lt;Target&amp;gt;\S+)&lt;/P&gt;&lt;P&gt;Thanks again for the help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 21:28:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-expression-to-extract-fields/m-p/572751#M199625</guid>
      <dc:creator>cgbsplunk</dc:creator>
      <dc:date>2021-10-27T21:28:15Z</dc:date>
    </item>
  </channel>
</rss>

