<?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 help on Rex filter in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-Rex-filter/m-p/577431#M201228</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33379"&gt;@jerinvarghese&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;what do you really intend with filter?&lt;/P&gt;&lt;P&gt;do you want to extract the strinbgs between quotes in a field or don't display them?&lt;/P&gt;&lt;P&gt;if you want to put in a field called "Event_Log", you could use a regex like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\"(?&amp;lt;Event_Log&amp;gt;[^\"]+)\""&lt;/LI-CODE&gt;&lt;P&gt;you can test the regex at&amp;nbsp;&lt;A href="https://regex101.com/r/hkPiCZ/1" target="_blank"&gt;https://regex101.com/r/hkPiCZ/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 06 Dec 2021 09:44:28 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2021-12-06T09:44:28Z</dc:date>
    <item>
      <title>Need help on Rex filter</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-Rex-filter/m-p/577428#M201226</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Need help in getting the right rex filter for the below _raw data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-12-04T01:29:48.015524+00:00 USHCO-EXXON, ipsec-ike-down, 689, "IKE connection with peer 10.218.42.113 (routing-instance EXXON-Control-VR) is up", USPAB

2021-12-04T01:29:15.007722+00:00 USHCO-EXXON, ipsec-tunnel-down, 687, "IPSEC tunnel with peer 10.218.42.111 (routing-instance EXXON-Control-VR) is up", USPAB

2021-12-04T01:29:15.007722+00:00 USHCO-EXXON, ipsec-ike-down, 686, "IKE connection with peer 10.218.42.111 (routing-instance EXXON-Control-VR) is up", USPAB

2021-12-04T01:29:14.807814+00:00 USHCO-EXXON, ipsec-tunnel-down, 872, "IPSEC tunnel with peer 10.218.42.111 (routing-instance EXXON-Control-VR) is up", USPAB

2021-12-04T01:29:14.807814+00:00 USHCO-EXXON, ipsec-ike-down, 871, "IKE connection with peer 10.218.42.111 (routing-instance EXXON-Control-VR) is up", USPAB&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above is the raw data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Requirement :&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;All the content within " " need to filtered.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"IKE connection with peer 10.218.42.113 (routing-instance EXXON-Control-VR) is up"
"IPSEC tunnel with peer 10.218.42.111 (routing-instance EXXON-Control-VR) is up"
"IKE connection with peer 10.218.42.111 (routing-instance EXXON-Control-VR) is up"
"IPSEC tunnel with peer 10.218.42.111 (routing-instance EXXON-Control-VR) is up"
"IKE connection with peer 10.218.42.111 (routing-instance EXXON-Control-VR) is up"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above content to be filtered into Event_Log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "(?&amp;lt;Event_Log&amp;gt;[^"]+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But something am missing, its not capturing the data&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 09:33:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-on-Rex-filter/m-p/577428#M201226</guid>
      <dc:creator>jerinvarghese</dc:creator>
      <dc:date>2021-12-06T09:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Rex filter</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-Rex-filter/m-p/577431#M201228</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33379"&gt;@jerinvarghese&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;what do you really intend with filter?&lt;/P&gt;&lt;P&gt;do you want to extract the strinbgs between quotes in a field or don't display them?&lt;/P&gt;&lt;P&gt;if you want to put in a field called "Event_Log", you could use a regex like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\"(?&amp;lt;Event_Log&amp;gt;[^\"]+)\""&lt;/LI-CODE&gt;&lt;P&gt;you can test the regex at&amp;nbsp;&lt;A href="https://regex101.com/r/hkPiCZ/1" target="_blank"&gt;https://regex101.com/r/hkPiCZ/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 09:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-on-Rex-filter/m-p/577431#M201228</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-12-06T09:44:28Z</dc:date>
    </item>
  </channel>
</rss>

