<?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 filter an word from  a string using  SPL in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635680#M220853</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Thanks. The solution provided by you worked for me. but if the host name contains ip which contains number e.g.it2 or uat2 so it returns first number which is wrong. is it&amp;nbsp; better way to find a&amp;nbsp; number which is present in&amp;nbsp; before specific word like ms.&lt;/P&gt;&lt;P&gt;e.g. Input : customerservice it2-customer.com completed in 56 ms.&lt;/P&gt;&lt;P&gt;Expected output&amp;nbsp; customerservice&amp;nbsp; 56.&lt;/P&gt;&lt;P&gt;Current output&amp;nbsp; customerservice 2.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 10:10:15 GMT</pubDate>
    <dc:creator>ABHAYA</dc:creator>
    <dc:date>2023-03-23T10:10:15Z</dc:date>
    <item>
      <title>How to filter an word from  a string using  SPL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635275#M220709</link>
      <description>&lt;P&gt;e.g. input : CustomerService API call compeled in 105 ms Expected output : Customerservice&amp;nbsp; 105 (in some graphical reprentation)&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 16:58:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635275#M220709</guid>
      <dc:creator>ABHAYA</dc:creator>
      <dc:date>2023-03-21T16:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to filter an word from  a string using  SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635295#M220716</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;API&amp;gt;\w+) API call completed in (?&amp;lt;completion_time&amp;gt;\d+) ms"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Mar 2023 12:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635295#M220716</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-21T12:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to filter an word from  a string using  SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635308#M220718</link>
      <description>&lt;P&gt;It is returning only the 1st digit of the number not the whole number. for e.g. returning 1 for 105.is there&amp;nbsp; any&amp;nbsp; way to improve&amp;nbsp; above&amp;nbsp; query.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 13:08:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635308#M220718</guid>
      <dc:creator>ABHAYA</dc:creator>
      <dc:date>2023-03-21T13:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to filter an word from  a string using  SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635312#M220719</link>
      <description>&lt;P&gt;Did you include the '+' after the '\d'?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 13:15:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635312#M220719</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-21T13:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to filter an word from  a string using  SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635680#M220853</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Thanks. The solution provided by you worked for me. but if the host name contains ip which contains number e.g.it2 or uat2 so it returns first number which is wrong. is it&amp;nbsp; better way to find a&amp;nbsp; number which is present in&amp;nbsp; before specific word like ms.&lt;/P&gt;&lt;P&gt;e.g. Input : customerservice it2-customer.com completed in 56 ms.&lt;/P&gt;&lt;P&gt;Expected output&amp;nbsp; customerservice&amp;nbsp; 56.&lt;/P&gt;&lt;P&gt;Current output&amp;nbsp; customerservice 2.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 10:10:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635680#M220853</guid>
      <dc:creator>ABHAYA</dc:creator>
      <dc:date>2023-03-23T10:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to filter an word from  a string using  SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635686#M220857</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="customerservice it2-customer.com completed in 56 ms."
| rex "(?&amp;lt;API&amp;gt;\S+) completed in (?&amp;lt;completion_time&amp;gt;\d+) ms"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Mar 2023 11:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635686#M220857</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-23T11:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter an word from  a string using  SPL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635879#M220910</link>
      <description>&lt;P&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168" target="_blank" rel="noopener"&gt;@ITWhisperer&lt;/A&gt;&amp;nbsp; Thanks. The solution provided by you worked for me.How can we&amp;nbsp; find the average time for each service call.&lt;/P&gt;&lt;P&gt;e.g. Input : customerservice it2-customer.com completed in 10 ms.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; customerservice it2-customer.com&amp;nbsp; &amp;nbsp;completed in 8 ms&lt;/P&gt;&lt;P&gt;Expected output:&amp;nbsp; customerservice&amp;nbsp; &amp;nbsp;9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 10:31:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635879#M220910</guid>
      <dc:creator>ABHAYA</dc:creator>
      <dc:date>2023-03-24T10:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter an word from  a string using  SPL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635887#M220914</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats avg(completion_time) as avg_completion_time by API&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 24 Mar 2023 10:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/635887#M220914</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-24T10:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter an word from  a string using  SPL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/636305#M220985</link>
      <description>&lt;P&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168" target="_blank" rel="noopener"&gt;@ITWhisperer&lt;/A&gt;&amp;nbsp; How can we remove specific&amp;nbsp; service from the result of splunk query. Our splunk query gives below result but we dont want ExampleService in our response . How can we remove using SPL.&lt;/P&gt;&lt;P&gt;We tried Servicename !=ExampleService. it is not working .Please suggest what need to be done here?&lt;/P&gt;&lt;P&gt;e.g. Input : customerservice&amp;nbsp; 56 ms.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ExampleService&amp;nbsp; &amp;nbsp;12&amp;nbsp; ms&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected output&amp;nbsp; customerservice&amp;nbsp; 56.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 12:02:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/636305#M220985</guid>
      <dc:creator>ABHAYA</dc:creator>
      <dc:date>2023-03-28T12:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter an word from  a string using  SPL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/636306#M220986</link>
      <description>&lt;P&gt;Exactly what did you try - please share your SPL search&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 12:05:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/636306#M220986</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-28T12:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter an word from  a string using  SPL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/636499#M221050</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; I&amp;nbsp; got expected result by ServiceName != &amp;lt;value_to_be_added&amp;gt; in the last of SPL query. Thank you for your response.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 10:06:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-an-word-from-a-string-using-SPL/m-p/636499#M221050</guid>
      <dc:creator>ABHAYA</dc:creator>
      <dc:date>2023-03-29T10:06:04Z</dc:date>
    </item>
  </channel>
</rss>

