<?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: How to use the mvindex command to remove all characters after the second period (.) for a field's values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-mvindex-command-to-remove-all-characters-after/m-p/262948#M78926</link>
    <description>&lt;P&gt;A simplistic replace might be ok for you - &lt;BR /&gt;
| eval new_Asset_Name = replace(Asset_Name,".ews.int","")&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 09:15:38 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2020-09-29T09:15:38Z</dc:date>
    <item>
      <title>How to use the mvindex command to remove all characters after the second period (.) for a field's values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-mvindex-command-to-remove-all-characters-after/m-p/262944#M78922</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am finding difficulty to use the mvindex command to remove all the characters after the second period (.). Below is the column name Asset_name which has those values:&lt;/P&gt;

&lt;P&gt;Asset_Name&lt;/P&gt;

&lt;P&gt;s.hal.ews.int&lt;BR /&gt;
n2323paop-34.storage.ews.int&lt;/P&gt;

&lt;P&gt;I want the output to be:&lt;/P&gt;

&lt;P&gt;s7050qalv.hal&lt;BR /&gt;
n2323paop-34.storage&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 19:44:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-mvindex-command-to-remove-all-characters-after/m-p/262944#M78922</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2016-03-28T19:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the mvindex command to remove all characters after the second period (.) for a field's values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-mvindex-command-to-remove-all-characters-after/m-p/262945#M78923</link>
      <description>&lt;P&gt;I got it&lt;/P&gt;

&lt;P&gt;eval "Asset Names"=mvindex(split('Asset Names',".ews"),0) &lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 20:02:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-mvindex-command-to-remove-all-characters-after/m-p/262945#M78923</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2016-03-28T20:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the mvindex command to remove all characters after the second period (.) for a field's values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-mvindex-command-to-remove-all-characters-after/m-p/262946#M78924</link>
      <description>&lt;P&gt;What is your current query?  Is your sample data a single event with two asset names or two events with one asset name each?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 20:02:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-mvindex-command-to-remove-all-characters-after/m-p/262946#M78924</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-03-28T20:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the mvindex command to remove all characters after the second period (.) for a field's values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-mvindex-command-to-remove-all-characters-after/m-p/262947#M78925</link>
      <description>&lt;P&gt;Try this just all by itself:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval Asset_Name="n2323paop-34.storage.ews.int"
| eval "Asset Name"=replace(Asset_Name,"(.+)\.ews.*","\1")
| table "Asset Name" Asset_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The 1st line is for setup, the second does the work, and the third shows the two -- before and after.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 22:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-mvindex-command-to-remove-all-characters-after/m-p/262947#M78925</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2016-03-28T22:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the mvindex command to remove all characters after the second period (.) for a field's values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-mvindex-command-to-remove-all-characters-after/m-p/262948#M78926</link>
      <description>&lt;P&gt;A simplistic replace might be ok for you - &lt;BR /&gt;
| eval new_Asset_Name = replace(Asset_Name,".ews.int","")&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-mvindex-command-to-remove-all-characters-after/m-p/262948#M78926</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2020-09-29T09:15:38Z</dc:date>
    </item>
  </channel>
</rss>

