<?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: Using rex to filter fields in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Using-rex-to-filter-fields/m-p/531162#M4308</link>
    <description>&lt;LI-CODE lang="markup"&gt;rex "attr_actor_agent_id\s\[str\]\s\=\s\"[\w_]+_(?&amp;lt;agent_id&amp;gt;\d+)\""&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 27 Nov 2020 13:57:03 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2020-11-27T13:57:03Z</dc:date>
    <item>
      <title>Using rex to filter fields</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Using-rex-to-filter-fields/m-p/531157#M4307</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following pattern of logs and I'm trying to use rex to filter the values, but I'm having problems because of + in some events, can you help me?&lt;BR /&gt;&lt;BR /&gt;I started doing it like this:&amp;nbsp;&amp;nbsp;| rex field=_raw "attr_actor_agent_id\s(?&amp;lt;agent_id&amp;gt;.*)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to get only the last 04 digits after "_"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Example: 1243, 3232, 1122, 5454, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;attr_actor_agent_id [str] = "LB_DFSVGLQ_1243"
attr_actor_agent_id [str] = "AT_APARPRI_3232"	
attr_actor_agent_id [str] = "TR_REGIBEL_1122"	
attr_actor_agent_id [str] = "GP_DAYAPAN_5454"	
attr_actor_agent_id [str] = "LB_BIANIBR_5454"	
attr_actor_agent_id [str] = "AS_NAYRVIE_3232"	
attr_actor_agent_id [str] = "AS_LUMANAS_4343"	
attr_actor_agent_id [str] = "AS_MBCEVDJ_9111"
attr_actor_agent_id [str] = "LB_SILVWAN_4343"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 13:47:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Using-rex-to-filter-fields/m-p/531157#M4307</guid>
      <dc:creator>leandromatperei</dc:creator>
      <dc:date>2020-11-27T13:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using rex to filter fields</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Using-rex-to-filter-fields/m-p/531162#M4308</link>
      <description>&lt;LI-CODE lang="markup"&gt;rex "attr_actor_agent_id\s\[str\]\s\=\s\"[\w_]+_(?&amp;lt;agent_id&amp;gt;\d+)\""&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 27 Nov 2020 13:57:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Using-rex-to-filter-fields/m-p/531162#M4308</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-11-27T13:57:03Z</dc:date>
    </item>
  </channel>
</rss>

