<?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: Need to write both rex and regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452804#M128194</link>
    <description>&lt;P&gt;This worked. Thanks a lot&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2019 07:02:09 GMT</pubDate>
    <dc:creator>vishwanadhan_mu</dc:creator>
    <dc:date>2019-07-01T07:02:09Z</dc:date>
    <item>
      <title>Need to write both rex and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452801#M128191</link>
      <description>&lt;P&gt;"C:\Users\TestUser\AppData\Local\Microsoft\Teams\Update.exe" --processStart "Teams.exe" --process-start-args "--system-initiated"&lt;/P&gt;

&lt;P&gt;Could someone help me writing regex and rex to extract field(which is a process) name after --processStart .&lt;/P&gt;

&lt;P&gt;Next I'll filter out filed name which I don't want match.&lt;/P&gt;

&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 06:33:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452801#M128191</guid>
      <dc:creator>vishwanadhan_mu</dc:creator>
      <dc:date>2019-07-01T06:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need to write both rex and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452802#M128192</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval temp="\"C:\Users\TestUser\AppData\Local\Microsoft\Teams\Update.exe\" --processStart \"Teams.exe\" --process-start-args \"--system-initiated\"" 
| rex field=temp "--processStart\s\"(?P&amp;lt;processname&amp;gt;[^--]+)\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2019 06:43:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452802#M128192</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-07-01T06:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need to write both rex and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452803#M128193</link>
      <description>&lt;P&gt;Try this.&lt;/P&gt;

&lt;P&gt;Field extracted using space as delimiter.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
 | eval input="\"C:\Users\TestUser\AppData\Local\Microsoft\Teams\Update.exe\" --processStart \"Teams.exe\" --process-start-args \"--system-initiated\"" 
 | rex field=input "^(?:[^\s]* ){2}\"(?&amp;lt;process&amp;gt;[^ ]+)\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2019 06:52:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452803#M128193</guid>
      <dc:creator>jawaharas</dc:creator>
      <dc:date>2019-07-01T06:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need to write both rex and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452804#M128194</link>
      <description>&lt;P&gt;This worked. Thanks a lot&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 07:02:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452804#M128194</guid>
      <dc:creator>vishwanadhan_mu</dc:creator>
      <dc:date>2019-07-01T07:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need to write both rex and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452805#M128195</link>
      <description>&lt;P&gt;This too worked for me. Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 07:03:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452805#M128195</guid>
      <dc:creator>vishwanadhan_mu</dc:creator>
      <dc:date>2019-07-01T07:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need to write both rex and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452806#M128196</link>
      <description>&lt;P&gt;If you don't mind can you explain me [^--]+)\"" this part&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 07:14:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452806#M128196</guid>
      <dc:creator>vishwanadhan_mu</dc:creator>
      <dc:date>2019-07-01T07:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need to write both rex and regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452807#M128197</link>
      <description>&lt;P&gt;I mentioned to extract from processStart to  before -- &lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 07:18:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-write-both-rex-and-regex/m-p/452807#M128197</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-07-01T07:18:40Z</dc:date>
    </item>
  </channel>
</rss>

