<?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 group search results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-search-results/m-p/516701#M145238</link>
    <description>&lt;P&gt;And another option is to use tags for those deployments. Just add tag as wanted deployment per server.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.splunk.com/view/SP-CAAAGYJ" target="_blank"&gt;https://www.splunk.com/view/SP-CAAAGYJ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.5/Knowledge/Abouttagsandaliases" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.5/Knowledge/Abouttagsandaliases&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Aug 2020 13:36:18 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2020-08-28T13:36:18Z</dc:date>
    <item>
      <title>How to group search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-search-results/m-p/516654#M145223</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I searching web server's centralized logs and getting results from multiple servers. But those servers belongs to different deployments. For example:&lt;/P&gt;&lt;P&gt;- srv1, srv7, srv9, ... belongs to deployment Fin&lt;/P&gt;&lt;P&gt;- srv15, srv19, srv21, ... belongs to deployment Jpn&lt;/P&gt;&lt;P&gt;- srv100, srv 102, srv110, ... belongs to deployment Bra&lt;/P&gt;&lt;P&gt;On the results I can see the hosts, but I'm looking possibilities to group the servers into own deployments. Is that something I could do during the search by giving an array where servers are listed, or some other way? Or is this something I should do earlier?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 08:29:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-search-results/m-p/516654#M145223</guid>
      <dc:creator>Petri-X</dc:creator>
      <dc:date>2020-08-28T08:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to group search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-search-results/m-p/516655#M145224</link>
      <description>&lt;LI-CODE lang="markup"&gt;...
| eval deployment=case(in(server,"srv1","srv7","srv9"),"Fin",in(server,"srv15","srv19","srv21"),"Jpn",in(server,"srv100","srv102","srv110"),"Bra")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Aug 2020 08:51:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-search-results/m-p/516655#M145224</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-08-28T08:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to group search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-search-results/m-p/516657#M145225</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225562"&gt;@Petri-X&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;2 of many options:&lt;BR /&gt;&lt;BR /&gt;1.) Create a Lookup table with 2 columns: host, deployment.&lt;BR /&gt;In your SPL you would then add this to add the deployment:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup host_deployment.csv host OUTPUT deployment&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.) You could use case, I guess makes only sense if the list is rather small...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval deployment=case(host="srv1", "Fin", host="srv15", "Jpn")&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The case option could be even made a bit smarter, if you extract the number of the server, and then work with ranges....but in general I would work with the 1.) option .&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;BR /&gt;--&lt;BR /&gt;&lt;EM&gt;Karma and/or Solution tagging appreciated.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 08:56:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-search-results/m-p/516657#M145225</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-08-28T08:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to group search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-search-results/m-p/516659#M145226</link>
      <description>&lt;P&gt;Ooh !! This was super quick !!&lt;/P&gt;&lt;P&gt;Huge thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64317"&gt;@rnowitzki&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;for your help !&lt;/P&gt;&lt;P&gt;I believe I'll use the case option !&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 09:08:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-search-results/m-p/516659#M145226</guid>
      <dc:creator>Petri-X</dc:creator>
      <dc:date>2020-08-28T09:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to group search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-search-results/m-p/516701#M145238</link>
      <description>&lt;P&gt;And another option is to use tags for those deployments. Just add tag as wanted deployment per server.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.splunk.com/view/SP-CAAAGYJ" target="_blank"&gt;https://www.splunk.com/view/SP-CAAAGYJ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.5/Knowledge/Abouttagsandaliases" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.5/Knowledge/Abouttagsandaliases&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 13:36:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-search-results/m-p/516701#M145238</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-28T13:36:18Z</dc:date>
    </item>
  </channel>
</rss>

