<?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 Need help with Rex Function in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Rex-Function/m-p/524001#M147846</link>
    <description>&lt;P class="lia-align-left"&gt;I got a variable called _host_name which = usscic-secfio102.na.xxx.com.&amp;nbsp; I need to derive a variable called host_short which will have the value of&amp;nbsp;usscic-secfio102&amp;nbsp; &amp;nbsp;-- I use Ruby Regular expression editor to figure out expression to get string i need -- it's&amp;nbsp; &amp;nbsp; ^\w+.\w+&amp;nbsp; &amp;nbsp; &amp;nbsp;How do I integrate in querty using rex?&lt;/P&gt;&lt;P class="lia-align-center"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-center"&gt;index=cisco sourcetype=cisco_asa AND vendor_action=permitted AND host=158.11.333.444 | eval service=transport."/".dest_port| lookup dnslookup ip as host output host as host_name| rex????? | table host_short&lt;/P&gt;</description>
    <pubDate>Sat, 10 Oct 2020 00:11:25 GMT</pubDate>
    <dc:creator>Stephen11</dc:creator>
    <dc:date>2020-10-10T00:11:25Z</dc:date>
    <item>
      <title>Need help with Rex Function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Rex-Function/m-p/524001#M147846</link>
      <description>&lt;P class="lia-align-left"&gt;I got a variable called _host_name which = usscic-secfio102.na.xxx.com.&amp;nbsp; I need to derive a variable called host_short which will have the value of&amp;nbsp;usscic-secfio102&amp;nbsp; &amp;nbsp;-- I use Ruby Regular expression editor to figure out expression to get string i need -- it's&amp;nbsp; &amp;nbsp; ^\w+.\w+&amp;nbsp; &amp;nbsp; &amp;nbsp;How do I integrate in querty using rex?&lt;/P&gt;&lt;P class="lia-align-center"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-center"&gt;index=cisco sourcetype=cisco_asa AND vendor_action=permitted AND host=158.11.333.444 | eval service=transport."/".dest_port| lookup dnslookup ip as host output host as host_name| rex????? | table host_short&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 00:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Rex-Function/m-p/524001#M147846</guid>
      <dc:creator>Stephen11</dc:creator>
      <dc:date>2020-10-10T00:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Rex Function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Rex-Function/m-p/524003#M147847</link>
      <description>&lt;P&gt;rex field=&lt;SPAN&gt;called _host_name "(?&amp;lt;short_host&amp;gt;[^\.]+)"&lt;BR /&gt;how about this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 00:31:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Rex-Function/m-p/524003#M147847</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-10-10T00:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Rex Function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Rex-Function/m-p/524123#M147874</link>
      <description>&lt;P&gt;thanks ... that was easy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 20:31:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-Rex-Function/m-p/524123#M147874</guid>
      <dc:creator>Stephen11</dc:creator>
      <dc:date>2020-10-11T20:31:06Z</dc:date>
    </item>
  </channel>
</rss>

