|
1 | 1 | <form> |
2 | 2 | <label>Error Logs</label> |
3 | 3 | <fieldset submitButton="false" autoRun="true"> |
4 | | - <input type="time" token="date" searchWhenChanged="true"> |
| 4 | + <input type="time" token="date-range" searchWhenChanged="true"> |
5 | 5 | <label></label> |
6 | 6 | <default> |
7 | 7 | <earliest>-24h@h</earliest> |
|
19 | 19 | <fieldForLabel>severity</fieldForLabel> |
20 | 20 | <fieldForValue>severity</fieldForValue> |
21 | 21 | <search> |
22 | | - <query>| inputlookup marklogic_severity |
23 | | - | dedup severity</query> |
24 | | - <earliest>-24h@h</earliest> |
25 | | - <latest>now</latest> |
| 22 | + <query>| inputlookup marklogic_severity | dedup severity</query> |
26 | 23 | </search> |
27 | 24 | </input> |
28 | | - <input type="multiselect" token="log_levels" searchWhenChanged="true"> |
| 25 | + <input type="multiselect" token="log_level" searchWhenChanged="true"> |
29 | 26 | <label>Log Level</label> |
30 | 27 | <prefix>(</prefix> |
31 | 28 | <suffix>)</suffix> |
|
35 | 32 | <fieldForValue>log_level</fieldForValue> |
36 | 33 | <search> |
37 | 34 | <query>| inputlookup marklogic_severity</query> |
38 | | - <earliest>$date-range.earliest$</earliest> |
39 | | - <latest>$date-range.latest$</latest> |
40 | 35 | </search> |
41 | 36 | <default>*</default> |
42 | 37 | <choice value="*">All</choice> |
43 | 38 | </input> |
44 | | - <input type="multiselect" token="features" searchWhenChanged="true"> |
| 39 | + <input type="multiselect" token="feature" searchWhenChanged="true"> |
45 | 40 | <label>Feature</label> |
46 | 41 | <fieldForLabel>feature</fieldForLabel> |
47 | 42 | <fieldForValue>feature</fieldForValue> |
48 | 43 | <search> |
49 | | - <query>|inputlookup marklogic_feature |
50 | | - | dedup feature |
51 | | - | table feature</query> |
52 | | - <earliest>$date-range.earliest$</earliest> |
53 | | - <latest>$date-range.latest$</latest> |
| 44 | + <query>|inputlookup marklogic_feature | dedup feature | table feature</query> |
54 | 45 | </search> |
55 | 46 | <prefix>(</prefix> |
56 | 47 | <suffix>)</suffix> |
|
59 | 50 | <choice value="*">All</choice> |
60 | 51 | <default>*</default> |
61 | 52 | </input> |
| 53 | + <input type="multiselect" token="host" searchWhenChanged="true"> |
| 54 | + <label>Host</label> |
| 55 | + <prefix>(</prefix> |
| 56 | + <suffix>)</suffix> |
| 57 | + <valuePrefix>host=</valuePrefix> |
| 58 | + <delimiter> OR </delimiter> |
| 59 | + <fieldForLabel>host</fieldForLabel> |
| 60 | + <fieldForValue>host</fieldForValue> |
| 61 | + <search> |
| 62 | + <query>| metasearch sourcetype=marklogic_error host=* | stats count by host</query> |
| 63 | + </search> |
| 64 | + <choice value="*">All</choice> |
| 65 | + <default>*</default> |
| 66 | + </input> |
62 | 67 | <input type="text" token="search" searchWhenChanged="true"> |
63 | 68 | <label>Search</label> |
64 | 69 | <default></default> |
|
69 | 74 | <single> |
70 | 75 | <title>Error Messages</title> |
71 | 76 | <search> |
72 | | - <query>`marklogic_error` $log_levels$ $features$ $severity$ $search$ |
| 77 | + <query>`marklogic_error` $log_level$ $feature$ $severity$ $host$ $search$ |
73 | 78 | | timechart count as Errors |
74 | | - | accum Errors</query> |
75 | | - <earliest>$date.earliest$</earliest> |
76 | | - <latest>$date.latest$</latest> |
| 79 | + | accum Errors</query> |
| 80 | + <earliest>$date-range.earliest$</earliest> |
| 81 | + <latest>$date-range.latest$</latest> |
77 | 82 | </search> |
78 | 83 | <option name="colorBy">value</option> |
79 | 84 | <option name="colorMode">block</option> |
|
91 | 96 | <single> |
92 | 97 | <title>Informational</title> |
93 | 98 | <search> |
94 | | - <query>`marklogic_error` $log_levels$ $features$ $severity$ $search$ | where severity = "informational" | timechart count as Errors |
95 | | - | accum Errors</query> |
96 | | - <earliest>$date.earliest$</earliest> |
97 | | - <latest>$date.latest$</latest> |
| 99 | + <query>`marklogic_error` $log_level$ $feature$ $severity$ $host$ $search$ |
| 100 | + | where severity = "informational" |
| 101 | + | timechart count as Errors |
| 102 | + | accum Errors</query> |
| 103 | + <earliest>$date-range.earliest$</earliest> |
| 104 | + <latest>$date-range.latest$</latest> |
98 | 105 | </search> |
99 | 106 | <option name="colorBy">value</option> |
100 | 107 | <option name="colorMode">block</option> |
|
109 | 116 | <single> |
110 | 117 | <title>Medium</title> |
111 | 118 | <search> |
112 | | - <query>`marklogic_error` $log_levels$ $features$ $severity$ $search$ | where severity = "medium" | timechart count as Errors |
113 | | - | accum Errors</query> |
114 | | - <earliest>$date.earliest$</earliest> |
115 | | - <latest>$date.latest$</latest> |
| 119 | + <query>`marklogic_error` $log_level$ $feature$ $severity$ $host$ $search$ |
| 120 | + | where severity = "medium" |
| 121 | + | timechart count as Errors |
| 122 | + | accum Errors</query> |
| 123 | + <earliest>$date-range.earliest$</earliest> |
| 124 | + <latest>$date-range.latest$</latest> |
116 | 125 | </search> |
117 | 126 | <option name="colorMode">block</option> |
118 | 127 | <option name="drilldown">all</option> |
|
126 | 135 | <single> |
127 | 136 | <title>High</title> |
128 | 137 | <search> |
129 | | - <query>`marklogic_error` $log_levels$ $features$ $severity$ $search$ | where severity = "high" | timechart count as Errors |
130 | | - | accum Errors</query> |
131 | | - <earliest>$date.earliest$</earliest> |
132 | | - <latest>$date.latest$</latest> |
| 138 | + <query>`marklogic_error` $log_level$ $feature$ $severity$ $host$ $search$ |
| 139 | + | where severity = "high" |
| 140 | + | timechart count as Errors |
| 141 | + | accum Errors</query> |
| 142 | + <earliest>$date-range.earliest$</earliest> |
| 143 | + <latest>$date-range.latest$</latest> |
133 | 144 | </search> |
134 | 145 | <option name="colorBy">value</option> |
135 | 146 | <option name="colorMode">block</option> |
|
145 | 156 | <single> |
146 | 157 | <title>Critical</title> |
147 | 158 | <search> |
148 | | - <query>`marklogic_error` $log_levels$ $features$ $severity$ $search$ | where severity = "critical" | timechart count as Errors |
| 159 | + <query>`marklogic_error` $log_level$ $feature$ $severity$ $host$ $search$ |
| 160 | + | where severity = "critical" |
| 161 | + | timechart count as Errors |
149 | 162 | | accum Errors</query> |
150 | | - <earliest>$date.earliest$</earliest> |
151 | | - <latest>$date.latest$</latest> |
| 163 | + <earliest>$date-range.earliest$</earliest> |
| 164 | + <latest>$date-range.latest$</latest> |
152 | 165 | </search> |
153 | 166 | <option name="colorBy">trend</option> |
154 | 167 | <option name="colorMode">block</option> |
|
168 | 181 | <chart> |
169 | 182 | <title>By Severity</title> |
170 | 183 | <search> |
171 | | - <query>`marklogic_error` $log_levels$ $features$ $severity$ $search$ | stats count by severity</query> |
| 184 | + <query>`marklogic_error` $log_level$ $feature$ $severity$ $host$ $search$ |
| 185 | + | stats count by severity</query> |
172 | 186 | <earliest>-24h@h</earliest> |
173 | 187 | <latest>now</latest> |
174 | 188 | </search> |
|
188 | 202 | <chart> |
189 | 203 | <title>By Log Level</title> |
190 | 204 | <search> |
191 | | - <query>`marklogic_error` $log_levels$ $features$ $severity$ $search$ | stats count by log_level</query> |
| 205 | + <query>`marklogic_error` $log_level$ $feature$ $severity$ $host$ $search$ |
| 206 | + | stats count by log_level</query> |
192 | 207 | <earliest>-24h@h</earliest> |
193 | 208 | <latest>now</latest> |
194 | 209 | </search> |
|
202 | 217 | <chart> |
203 | 218 | <title>By Feature</title> |
204 | 219 | <search> |
205 | | - <query>`marklogic_error` $log_levels$ $features$ $severity$ $search$ | stats count by feature</query> |
| 220 | + <query>`marklogic_error` $log_level$ $feature$ $severity$ $host$ $search$ |
| 221 | + | stats count by feature</query> |
206 | 222 | <earliest>-24h@h</earliest> |
207 | 223 | <latest>now</latest> |
208 | 224 | </search> |
|
223 | 239 | <chart> |
224 | 240 | <title>Errors</title> |
225 | 241 | <search> |
226 | | - <query>`marklogic_error` $log_levels$ $features$ $severity$ $search$ NOT XDMP-INMM* | timechart count by error_code usenull=f limit=0</query> |
227 | | - <earliest>$date.earliest$</earliest> |
228 | | - <latest>$date.latest$</latest> |
| 242 | + <query>`marklogic_error` $log_level$ $feature$ $severity$ $host$ $search$ NOT XDMP-INMM* |
| 243 | + | timechart count by error_code usenull=f limit=0</query> |
| 244 | + <earliest>$date-range.earliest$</earliest> |
| 245 | + <latest>$date-range.latest$</latest> |
229 | 246 | </search> |
230 | 247 | <option name="charting.axisTitleX.visibility">collapsed</option> |
231 | 248 | <option name="charting.axisY.scale">log</option> |
|
243 | 260 | <panel> |
244 | 261 | <chart> |
245 | 262 | <search> |
246 | | - <query>`marklogic_error` $log_levels$ $features$ $severity$ NOT XDMP-INMM* | timechart count by error_code</query> |
| 263 | + <query>`marklogic_error` $log_level$ $feature$ $severity$ $host$ NOT XDMP-INMM* |
| 264 | + | timechart count by error_code</query> |
247 | 265 | <earliest>-24h@h</earliest> |
248 | 266 | <latest>now</latest> |
249 | 267 | </search> |
|
266 | 284 | <table> |
267 | 285 | <title>Error Explanation and Response (click to view MarkLogic documentation)</title> |
268 | 286 | <search> |
269 | | - <query>`marklogic_error` $log_levels$ $features$ $severity$ $search$ |
270 | | - | dedup error_code | lookup marklogic_error error_code OUTPUTNEW error_description, error_cause, error_response, error_url | lookup marklogic_severity severity OUTPUTNEW severity_threshold | sort -severity_threshold |
271 | | - | table error_code, severity, error_cause, error_response | where error_response!=""</query> |
| 287 | + <query>`marklogic_error` $log_level$ $feature$ $severity$ $host$ $search$ |
| 288 | + | dedup error_code |
| 289 | + | lookup marklogic_error error_code OUTPUTNEW error_description, error_cause, error_response, error_url |
| 290 | + | lookup marklogic_severity severity OUTPUTNEW severity_threshold |
| 291 | + | sort -severity_threshold |
| 292 | + | table error_code, severity, error_cause, error_response |
| 293 | + | where error_response!=""</query> |
272 | 294 | <earliest>-24h@h</earliest> |
273 | 295 | <latest>now</latest> |
274 | 296 | </search> |
|
284 | 306 | <panel> |
285 | 307 | <event> |
286 | 308 | <search> |
287 | | - <query>`marklogic_error` $log_levels$ $features$ $severity$ $search$ | table _time,_icon,error_code,severity,log_level,log_message</query> |
| 309 | + <query>`marklogic_error` $log_level$ $feature$ $severity$ $host$ $search$ |
| 310 | + | table _time,_icon,error_code,severity,log_level,log_message</query> |
288 | 311 | <earliest>-24h@h</earliest> |
289 | 312 | <latest>now</latest> |
290 | 313 | </search> |
|
0 commit comments