<?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 do you combine results based on substring? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331786#M159796</link>
    <description>&lt;P&gt;It is Camera_Location&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2017 19:55:01 GMT</pubDate>
    <dc:creator>sarahw3</dc:creator>
    <dc:date>2017-07-28T19:55:01Z</dc:date>
    <item>
      <title>How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331764#M159774</link>
      <description>&lt;P&gt;I have results such as "No image", "No Images", "No images: Blank", etc. I want to combine all results that say no images into one result that I can count. How can I do this in the search bar?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 14:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331764#M159774</guid>
      <dc:creator>sarahw3</dc:creator>
      <dc:date>2017-07-27T14:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331765#M159775</link>
      <description>&lt;P&gt;HI sarahw3,&lt;BR /&gt;
if you want the number of "No images" try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search "No image*"| stats count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 15:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331765#M159775</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-07-27T15:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331766#M159776</link>
      <description>&lt;P&gt;I also have other results, like "Not Checked" and "Working". Is there a way I can display those counts as well as the combo of "No images"?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 15:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331766#M159776</guid>
      <dc:creator>sarahw3</dc:creator>
      <dc:date>2017-07-27T15:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331767#M159777</link>
      <description>&lt;P&gt;We may be more helpful if you can add more (full) sample events with all different values. A sample output would be even more helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 15:48:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331767#M159777</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-27T15:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331768#M159778</link>
      <description>&lt;P&gt;insert all these values in a lookup (e.g. called No_Images.csv with one column called query) and run a search like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search [ | inputlookup No_Images.csv | fields query ] | stats count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this way you search for all strings in your lookup.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 15:53:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331768#M159778</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-07-27T15:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331769#M159779</link>
      <description>&lt;P&gt;It is still not working for me. I have the following events and their frequency when I do stats count by Status:&lt;BR /&gt;
No Image: 30&lt;BR /&gt;
No Images: 15&lt;BR /&gt;
No image-Blank: 40&lt;BR /&gt;
No image-Rebooted: 21&lt;BR /&gt;
Never Checked: 132&lt;BR /&gt;
Not Working: 21&lt;/P&gt;

&lt;P&gt;I would like it to display like the following:&lt;BR /&gt;
No Images: 106&lt;BR /&gt;
Never Checked: 132&lt;BR /&gt;
Not Working: 21&lt;/P&gt;

&lt;P&gt;I have very little experience with Splunk so I apologize for not understanding. I really appreciate your help!!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:25:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331769#M159779</guid>
      <dc:creator>sarahw3</dc:creator>
      <dc:date>2017-07-27T18:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331770#M159780</link>
      <description>&lt;P&gt;And this data is coming from multiple csv files if that makes a difference.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:27:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331770#M159780</guid>
      <dc:creator>sarahw3</dc:creator>
      <dc:date>2017-07-27T18:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331771#M159781</link>
      <description>&lt;P&gt;Are "No Image", "Never Checked" and "Not Working" are the only possible values here? The text you posted in your previous comment, is it _raw field (raw data) or part of a field?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:33:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331771#M159781</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-27T18:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331772#M159782</link>
      <description>&lt;P&gt;It is raw data in the form of a string.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:42:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331772#M159782</guid>
      <dc:creator>sarahw3</dc:creator>
      <dc:date>2017-07-27T18:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331773#M159783</link>
      <description>&lt;P&gt;And yes these are the only possible values I am interested in.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331773#M159783</guid>
      <dc:creator>sarahw3</dc:creator>
      <dc:date>2017-07-27T18:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331774#M159784</link>
      <description>&lt;P&gt;Have you tried using an 'if' function.&lt;BR /&gt;
    | eval new-field = if(your-field = "No image*" , "No Image" , your-field)&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331774#M159784</guid>
      <dc:creator>rbreton</dc:creator>
      <dc:date>2017-07-27T18:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331775#M159785</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search
| rex "(?&amp;lt;Status&amp;gt;(No Image|Never Checked|Not Working)" 
| stats count by Status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:51:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331775#M159785</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-27T18:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331776#M159786</link>
      <description>&lt;P&gt;Yay that worked perfectly!!! Thank you so so so so so much!!!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 19:10:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331776#M159786</guid>
      <dc:creator>sarahw3</dc:creator>
      <dc:date>2017-07-27T19:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331777#M159787</link>
      <description>&lt;P&gt;Glad it worked out for you. Don't forget to close the question by accepting the answer that worked.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 19:19:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331777#M159787</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-27T19:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331778#M159788</link>
      <description>&lt;P&gt;Now it is not working for me. Is there a way to say if the string starts with No Images, keep the first 9 characters of that string and forget the rest? Ex. "No Images- Computer failed" would be cut to just "No images"?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 16:59:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331778#M159788</guid>
      <dc:creator>sarahw3</dc:creator>
      <dc:date>2017-07-28T16:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331779#M159789</link>
      <description>&lt;P&gt;Sure, try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search
 | eval Status=case(searchmatch("No Image"),"No Images", searchmatch("Never Checked"),"Never Checked"), searchmatch("Not Working"),"Not Working") 
 | stats count by Status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jul 2017 17:04:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331779#M159789</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-28T17:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331780#M159790</link>
      <description>&lt;P&gt;Brilliant!!! Thank you!!!!!!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 17:08:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331780#M159790</guid>
      <dc:creator>sarahw3</dc:creator>
      <dc:date>2017-07-28T17:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331781#M159791</link>
      <description>&lt;P&gt;Haha sorry for all the questions! I am very new to splunk haha! So we record the name of the cameras and a few years ago we changed the format of how we enter the names. Ex. PSA turned into 07789PSA. Is there a way I can combine those two formats into one for all 100+ cameras we have? I have a dropdown menu and I want each camera have just one option so that all the data for that one camera is together.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 18:47:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331781#M159791</guid>
      <dc:creator>sarahw3</dc:creator>
      <dc:date>2017-07-28T18:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331782#M159792</link>
      <description>&lt;P&gt;I'm pretty sure you can but I need to know more before I can suggest something. Does camera name comes as part of a field or raw? What is the current dropdown query?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 18:59:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331782#M159792</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-28T18:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you combine results based on substring?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331783#M159793</link>
      <description>&lt;P&gt;I have a similar search. See if this can help...&lt;BR /&gt;
    | eval status = if(like(status, "No Image%"), "No image", status)&lt;BR /&gt;
    | stats count by status&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 19:22:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-combine-results-based-on-substring/m-p/331783#M159793</guid>
      <dc:creator>rbreton</dc:creator>
      <dc:date>2017-07-28T19:22:39Z</dc:date>
    </item>
  </channel>
</rss>

