Licenses: Updated the list of licenses and added a PDF containing all license texts
[check_mk.git] / .werks / 561
blob8413113d5ba995c43579cab991c777ae45902ff3
1 Title: Quicksearch: now able to search with multiple filters
2 Level: 2
3 Component: multisite
4 Version: 1.2.5i1
5 Date: 1393430612
6 Class: feature
8 The classical quicksearch allowed certain filter prefixes,
9 which specified the item to look for. For example:
10 <ul>
11 <li><tt>h:</tt> {search_text} # Find hostname, host_address or hostalias</li>
12 <li><tt>s:</tt> {search_text} # Find service</li>
13 <li><tt>hg:</tt> {search_text} # Find hostgroup</li>
14 <li><tt>sg:</tt> {search_text} # Find servicegroup</li>
15 </ul>
17 The new search feature enhances the service search.<br>
18 You can now combine these filters to thin out the results.<br>
19 For example:
20 C+:
21 s: mem h: localhost
22 C-:
24 This will search for all services containing <tt>mem</tt> on the <tt>localhost</tt>.
25 Furthermore you can combine these filters.
27 C+:
28 s: mem s: cpu h: localhost h: switch-intern
29 C-:
31 This will search for all services containing <tt>mem</tt> <b>OR</b> <tt>cpu</tt> on
32 the hosts <tt>localhost</tt> <b>OR</b> <tt>switch-intern</tt>.
33 The search algorhytm is as follow:
34 <ul>
35 <li>Same filters are combined with <tt>OR</tt></li>
36 <li>Different filters are combined with <tt>AND</tt></li>
37 </ul>
39 The query
40 C+:
41 h: localhost s: mem s: cpu h:switch-intern
42 C-:
43 actually results in the following livestatus query:
45 C+:
46 GET services
47 Cache: reload
48 Columns: service_description host_name hostgroups servicegroups
49 Filter: host_name ~~ switch-intern
50 Filter: host_name ~~ localhost
51 Or: 2
52 Filter: service_description ~~ cpu
53 Filter: service_description ~~ mem
54 Or: 2
55 And: 2
56 Limit: 80
57 C-:
59 You can also add the <tt>hg:</tt> and <tt>sg:</tt> filters to the query.<br>
60 <b>Note:</b> Right now, this multisearch filter only works if at least one of the filters is a service ( <tt>s:</tt> ).