<?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 How to remove everything after a specific character and any digit in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-everything-after-a-specific-character-and-any/m-p/583416#M203158</link>
    <description>&lt;P&gt;I want remove everything after "-" and any digit for example -1,-2,-3...-9,-0&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using rex function but not getting desired output.&lt;/P&gt;&lt;TABLE width="777"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="417"&gt;current data&lt;/TD&gt;&lt;TD width="360"&gt;Desired o/p&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;splunk.server-1.9.0.CLIEN-server-38444&lt;/TD&gt;&lt;TD&gt;splunk.server&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;abcd-available.server-7.0.0.RETCAR-server-75344&lt;/TD&gt;&lt;TD&gt;abcd-available.server&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Wed, 02 Feb 2022 15:23:11 GMT</pubDate>
    <dc:creator>shaileshransing</dc:creator>
    <dc:date>2022-02-02T15:23:11Z</dc:date>
    <item>
      <title>How to remove everything after a specific character and any digit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-everything-after-a-specific-character-and-any/m-p/583416#M203158</link>
      <description>&lt;P&gt;I want remove everything after "-" and any digit for example -1,-2,-3...-9,-0&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using rex function but not getting desired output.&lt;/P&gt;&lt;TABLE width="777"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="417"&gt;current data&lt;/TD&gt;&lt;TD width="360"&gt;Desired o/p&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;splunk.server-1.9.0.CLIEN-server-38444&lt;/TD&gt;&lt;TD&gt;splunk.server&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;abcd-available.server-7.0.0.RETCAR-server-75344&lt;/TD&gt;&lt;TD&gt;abcd-available.server&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 02 Feb 2022 15:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-everything-after-a-specific-character-and-any/m-p/583416#M203158</guid>
      <dc:creator>shaileshransing</dc:creator>
      <dc:date>2022-02-02T15:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove everything after a specific character and any digit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-everything-after-a-specific-character-and-any/m-p/583419#M203161</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex mode=sed field=current "s/\-\d.*//g"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Feb 2022 15:27:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-everything-after-a-specific-character-and-any/m-p/583419#M203161</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-02T15:27:10Z</dc:date>
    </item>
  </channel>
</rss>

