Commit 17f45a6
committed
20234 FIX Correct inline help of check_elasticsearch_query search pattern and field names
The inline help of the active check "Query elasticsearch logs"
(`check_elasticsearch_query`) described the wrong query syntax.
The "Search pattern" field claimed that the Kibana query language (KQL) could
be used and linked to the KQL documentation. This was never the case: the check
sends the pattern verbatim as an Elasticsearch `query_string` query to the
`_count` API. The query string syntax is similar to KQL, but a distinct and
separate language. The help now links to the query string documentation and
points out that regular expressions can be embedded by wrapping them in forward
slashes.
The "Fieldnames to query" field claimed that regexp queries were allowed and
linked to the `regexp` query documentation. The entered field names are passed
to the `fields` parameter of the same `query_string` query, which supports
wildcards, not regular expressions. The `regexp` query documented under the old
link matches values within a single named field and is never issued by this
check. The help now describes wildcards and links to the query string
documentation.
This is a documentation fix only, the behavior of the check is unchanged.
CMK-32227
Change-Id: Ic4cbbe486150a43298f6f4d27c7ad23f3900d79a1 parent 6e05b2e commit 17f45a6
2 files changed
Lines changed: 34 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
133 | | - | |
134 | | - | |
| 136 | + | |
| 137 | + | |
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
| |||
0 commit comments