<?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: To eliminate numbers in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/To-eliminate-numbers/m-p/23218#M177455</link>
    <description>&lt;P&gt;As a general tip regarding your search - you don't need the two &lt;CODE&gt;table&lt;/CODE&gt; command you have in there.&lt;/P&gt;

&lt;P&gt;You can get rid of the country values starting with a digit by adding a &lt;CODE&gt;where&lt;/CODE&gt; command after your initial search command...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="-----------------------------" NOT "COUNTRY" ORDER_END_DATE!=" " | where !match(COUNTRY,"^\d") | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 03 May 2013 06:57:20 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2013-05-03T06:57:20Z</dc:date>
    <item>
      <title>To eliminate numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-eliminate-numbers/m-p/23217#M177454</link>
      <description>&lt;P&gt;Hi this my search results &lt;BR /&gt;
         COUNTRY    avg(TIME_TAKEN_IN_DAYS_TO_COMPLETE_THE_ORDER)&lt;BR /&gt;
1   268647320   462.000000&lt;BR /&gt;
2   268647324   404.000000&lt;BR /&gt;
3   268647325   483.000000&lt;BR /&gt;
4   268713740   90.000000&lt;BR /&gt;
5   268755211   95.000000&lt;BR /&gt;
6   268755212   81.000000&lt;BR /&gt;
7   268910904   47.000000&lt;BR /&gt;
8   ALBANIA         78.885057&lt;BR /&gt;
9   ALGERIA         162.192308&lt;BR /&gt;
10  ANDORRA         72.083333&lt;BR /&gt;
11  ANGOLA          87.625000&lt;BR /&gt;
12  ARGENTINA   131.596965&lt;BR /&gt;
13  ARMENIA         124.333333&lt;BR /&gt;
14  AUSTRALIA   119.199497&lt;BR /&gt;
15  AUSTRIA         140.973917&lt;BR /&gt;
16  AZERBAIJAN  136.800000&lt;BR /&gt;
17  BAHAMAS         200.375000&lt;BR /&gt;
18  BAHRAIN         102.406360&lt;/P&gt;

&lt;P&gt;I want only countries to be displayed,i want to eliminate first numbers from COUNTRY field.&lt;/P&gt;

&lt;P&gt;My search query is&lt;BR /&gt;
source="-----------------------------" NOT "COUNTRY" ORDER_END_DATE!=" " | table CUS_OBJID,COUNTRY,CITY,ORDER_CREATED_DATE,ORDER_END_DATE | eval j2=ORDER_END_DATE | eval j1=ORDER_CREATED_DATE | eval d1=strptime(j1,"%d-%b-%y") |eval d2=strptime(j2,"%d-%b-%y") | eval TIME_TAKEN_IN_DAYS_TO_COMPLETE_THE_ORDER = (d2-d1)/86400 | eval TIME_TAKEN_IN_DAYS_TO_COMPLETE_THE_ORDER=round(TIME_TAKEN_IN_DAYS_TO_COMPLETE_THE_ORDER,2) |table COUNTRY,CITY,TIME_TAKEN_IN_DAYS_TO_COMPLETE_THE_ORDER | stats avg(TIME_TAKEN_IN_DAYS_TO_COMPLETE_THE_ORDER) by COUNTRY &lt;/P&gt;

&lt;P&gt;Please help me&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-eliminate-numbers/m-p/23217#M177454</guid>
      <dc:creator>ncbshiva</dc:creator>
      <dc:date>2020-09-28T13:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: To eliminate numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-eliminate-numbers/m-p/23218#M177455</link>
      <description>&lt;P&gt;As a general tip regarding your search - you don't need the two &lt;CODE&gt;table&lt;/CODE&gt; command you have in there.&lt;/P&gt;

&lt;P&gt;You can get rid of the country values starting with a digit by adding a &lt;CODE&gt;where&lt;/CODE&gt; command after your initial search command...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="-----------------------------" NOT "COUNTRY" ORDER_END_DATE!=" " | where !match(COUNTRY,"^\d") | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 May 2013 06:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-eliminate-numbers/m-p/23218#M177455</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-05-03T06:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: To eliminate numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-eliminate-numbers/m-p/23219#M177456</link>
      <description>&lt;P&gt;thanks.................&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 08:46:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-eliminate-numbers/m-p/23219#M177456</guid>
      <dc:creator>ncbshiva</dc:creator>
      <dc:date>2013-05-03T08:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: To eliminate numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-eliminate-numbers/m-p/23220#M177457</link>
      <description>&lt;P&gt;No problem. Please mark my answer as accepted if it solved your problem.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 09:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-eliminate-numbers/m-p/23220#M177457</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-05-03T09:02:41Z</dc:date>
    </item>
  </channel>
</rss>

