What changed when your filter was converted
What each notice on a converted Basic or Advanced filter means, with a before and after example and what to do.
This page is for anyone who opened a saved filter and saw a line above the filter bar. Find your notice in the table, then follow its link. Every notice starts with one of two sentences.
- Converting this filter changes what it matches. Read these first. The rows can differ from what the old filter returned.
- This filter is kept exactly as it runs today. The rows are the same. The filter only reads differently from what you might expect.
Nothing changes in a saved filter until you save it again.
What you will see
The filter now matches something different
| What you will see | What it means | What to do |
|---|---|---|
| Case-insensitive match folds letters differently | Letters outside A to Z can match differently in a pipeline or log-to-metric filter. | Nothing, unless the field holds non-English letters. Then test the rule. |
| Body equality becomes a word search | body = "timeout" now matches the word anywhere in a line, not the whole line. | Check that the wider match is what you want. |
| Advanced text that never ran, now empty | The old text never filtered anything. The filter is now empty and matches every row. | Type the condition again if you want it. |
| Advanced text that never ran, rebuilt from chips | The old text never filtered. The chips did, so the filter is built from them. | Add the quoted text if you wanted it. |
| Word search on a field becomes an exact match | workload hasAnyToken ("payment") now matches only the value payment, not repayments or payment-api. | Write workload:~*payment* if you want the text anywhere in a value. |
| Case-insensitive log search on a field becomes a substring match | payment now also matches repayments. | Write workload:payment for the whole value. |
| A variable the dashboard does not have, ignored | The filter named a $name that is not a variable of this dashboard. It is now left out. | Remove the term, or add the variable to the dashboard. |
| A condition that never ran, now applied as you meant it | One condition was unreadable and never filtered. It now applies, so you may see fewer rows. | Check the result is what you meant. |
| A condition with no value, left out | A condition with no value never ran. It is left out. | Add the value if you want the condition. |
| An exist check that errored, now works | On traces, exist(@key) gave an error. It now checks that the attribute is present. | Nothing. |
| A condition that was ignored, now applied | A condition was ignored before. It now applies, so you see fewer rows. | Remove it if you relied on the old result. |
| A field that the filter does not know | The field never worked. The filter bar keeps it and underlines it. | Pick the field you meant, or remove the term. |
| A regular expression, now a pattern | A MATCH expression that never ran is now the same pattern in a filter. | Nothing. |
| A regular expression that a filter cannot take here | The expression is not a plain pattern, and only pipelines accept expressions. | Use a wildcard, or move the rule into a pipeline. |
| A comparison on an attribute that now reads text numbers | Values stored as text that look like numbers now match too. | Nothing, unless you relied on text values being skipped. |
| An attribute condition in an alert that now reads both types | The alert read only the text values (or only the number values) of an attribute. It now also matches the value stored as the other type. | Check that the extra match is fine. |
| A saved view that ran from its chips | The view ran its chips, not the filter stored beside them. | Check the filter, then save the view. |
| An equality that compared the value's own type | In a pipeline, status = 500 now compares the text form, so it also matches the value stored the other way. | Check that the extra match is fine. |
| A pipeline list that now uses every value | A condition lists several values, but only the first one ever ran. The filter uses every value, so the rule can match more logs (a not-equals excludes more). | Check that the extra values are the ones you meant, then save. |
| A saved filter that is not valid | The filter it converts to has an error. The bar shows where. | Fix the text where it is marked, then save. |
The filter matches the same rows
| What you will see | What it means | What to do |
|---|---|---|
| A trace attribute comparison that ran as an equality | A chip on a trace attribute with a >=500 value ran as an equality. the filter keeps what ran. | Write the comparison you meant. |
| Free text on traces, ignored | Trace search never used free text. It is left out. | Use a field, such as resource:*checkout*. |
| A variable that is not a whole value | A $env inside a longer value was never filled in. It stays literal text. | Use a whole value: workload:$env. |
| One field, an include or an exclude, joined by OR | The filter matches more than it reads like. | Write workload:payment -workload:cart if that is what you meant. |
| A range on one field that matches every row | Two ranges joined by OR match everything. | Write duration_ms>5 duration_ms<9. |
| An exist check on a column | exist(workload) becomes workload:*, a value that is not empty. | Nothing. |
| The Unresolved IP chip | Unresolved IP is a test for an IPv4 address, not text. | Nothing. |
| A pattern on a screen that has no patterns | On RUM, % was always literal text. | Nothing. Use view_name:50* for a wildcard where the field takes patterns. |
| A regular expression in a pipeline | A pipeline expression is now a /regex/ term. | Nothing. |
| A pipeline pattern that ran as a contains test | Pay% matched Pay anywhere. The filter writes that as `/Pay/, with no notice. | Nothing. For a prefix, write workload:Pay* and test the rule. |
When a filter cannot be converted
If KubeSense cannot prove that the filter matches the same rows, the filter stays as it was. The screen says that the filter can't be converted yet and gives the reason. Keep working in Advanced, or retype the filter in the Basic tab.
| Reason you will see | What it means |
|---|---|
| A condition in it has a value a filter cannot write | The value is true or false, null, a list or an object, or a number is tested against body, which is text. Write the condition with a text or a number on a field. |
| It names a field the filter does not know | A pipeline condition reads log columns and @attributes. Pick the field you meant. |
| This condition matches every log | A MATCH on the body with ^ or an empty pattern is true for every log. The rule stays as it is so someone can review it. A block rule with it drops every log. If only a part matches every log, the editor says that part decides nothing. |
| It is an old rule, saved before conditions existed | A rule from before conditions shows its filter when that is proved to select the same logs. When it is not, the rule opens in Advanced. Saving it converts it. |
| The filter for an old rule would select different logs, or the rule is too large to convert in one step | The rule stays as it is. Rewrite the condition. |
| The pipeline has never been able to run a condition in it | A free-text chip or a NOT LIKE in a pipeline was refused when the rule was built, so there is nothing to keep. Write the condition you want. |
| It uses a regular-expression match, or a pattern in it matches differently in a pipeline | Only pipelines take /regex/. Where the match would differ, the rule stays as it is. |
| A word or pattern search has a null value | The alert engine reads a null as empty text, and a filter has no text for it. A true, false or number is searched by its text and converts. Write the value as text. |
| It compares a very small or very large number as text | The alert engine writes a number such as 1e-7, or one with more than 15 digits, differently from a filter. Write the comparison on the value itself. |
| It compares a number attribute with a true or false | A filter would read the text values instead. Compare with a number. |
| It can never match a log, or it fails on every check | The alert would never fire, for example a word search with no word of two letters. The filter stays as it is so someone can review it. A new or edited alert with such a filter is refused at save. |
| A pattern has a backslash before another character | A backslash before anything but %, _ or a backslash is read differently by the database with and without a % at the end. Remove the backslash, or write the character itself. |
| A word search on the body is case-sensitive | A filter has no case-sensitive search. The filter stays as it is. |
| It reads only the text values, or only the number values, of an attribute | A filter's @key reads both and has no way to name one. The filter stays as it is. In most alerts it converts, with the notice attr_other_map_also. |
| It negates an attribute condition | A NOT around an attribute also matches rows that do not have the attribute, while -@key:value means the attribute is there and is not that value. In an alert it converts to (-@key:* OR -@key:value), with the notice attr_other_map_also. Elsewhere, and on a list element, the filter stays as it is. |
Notices that change what a filter matches
Some saved filters never ran the way they read. KubeSense converts what you meant, so check the result.
Case-insensitive match folds letters differently
The rules can disagree on letters such as É and é. A to Z behave the same.
Before, in a pipeline rule: workload ILIKE "%Pay%"
After:
workload:~*Pay*Body equality becomes a word search
IN, != and NOT IN change the same way. A filter has no whole-line equality on body. For lines that start with a word, write body:timeout*.
Before: body = "timeout"
After:
body:timeoutAdvanced text that never ran, now empty
The text showed in the editor but never filtered.
Before: workload = "payment" in the editor, results not filtered.
After: an empty filter bar. Type workload:payment to get the filter.
Advanced text that never ran, rebuilt from chips
Before: the text workload = "payment" never ran. The chips held namespace = otel-demo.
After:
namespace:otel-demoWord search on a field becomes an exact match
This covers hasAnyToken, HAS_TOKEN and hasAllToken with one value, on any field other than body. A filter has no word search on those fields, so the value must equal the whole field value. A value such as repayments or payment-api no longer matches payment. For the text anywhere in a value, write workload:~*payment*. For a prefix, write workload:payment*. The old search dropped non-English letters from the value (café searched for caf), so it never found a value with such letters; the converted search finds it, in any case, such as café and CAFÉ for café.
hasAllToken with several values on such a field cannot convert, because one value cannot equal all of them. The filter stays in Advanced.
Before: workload hasAnyToken ("payment", "checkout")
After:
workload:(payment OR checkout)Case-insensitive log search on a field becomes a substring match
This covers ILIKE_LOG on a field other than body. A filter has no word search there, so it becomes a substring test that ignores case. For a prefix, write workload:~payment*.
Before: workload ILIKE_LOG "payment"
After:
workload:~*payment*A variable the dashboard does not have, ignored
Only a dashboard panel has variables. When a panel filter names a $name that the dashboard no longer has, the filter leaves that term out. If the filter names only missing variables, it now converts. If it names a missing variable in a condition, that condition is dropped, which changes what the filter matches.
Before: the Advanced filter service = "$nope" AND status = error. It ran as a search for the text $nope, so it returned no rows.
After:
status:errorA filter such as $$nope AND status = error, or a Basic chip $nope, drops the missing term and returns the same rows as before. The notice appears only when the rows change.
A condition that never ran, now applied as you meant it
The filter now uses the saved Advanced text.
Before, for example: the text service = "checkout" AND status = "error", with an unreadable stored condition.
After:
service:checkout status:errorA condition with no value, left out
Before: workload = "payment" AND namespace =
After:
workload:paymentAn exist check that errored, now works
Before: exist(@http.route) on traces, which gave an error.
After:
@http.route:*A field that the filter does not know
The filter bar keeps the field as written and underlines it. KubeSense shows text with an error but never stores it.
Before: nosuchfield = "x"
After:
nosuchfield:xA regular expression, now a pattern
Before: body MATCH "pay.*ment"
After:
body:pay*mentA regular expression that a filter cannot take here
The filter bar keeps the text and reports an error. See Regular expressions.
Before: body MATCH "pay[0-9]+"
After:
body:/pay[0-9]+/A rewrite with a wildcard is body:pay*.
A condition that was ignored, now applied
Before, for example: workload = "checkout" AND namespace = "shop", which filtered only on workload.
After:
workload:checkout namespace:shopA comparison on an attribute that now reads text numbers
Before: http.status_code > 400, where the attribute is a number in some rows and text such as "500" in others.
After:
@http.status_code>400An attribute condition in an alert that now reads both types
An attribute can be stored as text or as a number. An alert filter with a declared attribute type, or with an operation such as NOT LIKE, read only one of the two. A filter's @key reads both, so the alert now also matches a row that stores the value as the other type. The alert can fire on more rows than before.
Before: an alert filter user.tier = "gold" on an attribute declared as text.
After:
@user.tier:goldA saved view that ran from its chips
Saving stores the text.
Before: chips service = checkout, stored filter service = payment.
After:
service:checkoutAn equality that compared the value's own type
This applies to log pipelines and log-to-metric filters. An attribute holds text or a number. A rule such as status = 500 compared the number 500 only, and status = "500" compared the text only. The filter compares the text form, so both spellings match the number 500 and the text 500. A rule with != loses those events, and a rule with = gains them.
Before: a pipeline rule with http.status_code = 500.
After:
@http.status_code:500A saved filter that is not valid
The editor shows the text with its error. Until you fix it, the filter keeps its old form.
Before: body_length > 50 on logs, where body_length is not a log field.
After:
body_length>50Notices for filters kept exactly
One field, an include or an exclude, joined by OR
Before: the chips workload = payment and workload != cart.
After:
workload:payment OR -workload:cartThis matches every row that is not cart, plus the payment rows.
A range on one field that matches every row
Before: the chips duration > 5 ms and duration < 9 ms.
After:
duration_ms>5 OR duration_ms<9An exist check on a column
Before: exist(workload)
After:
workload:*The Unresolved IP chip
Without quotes, unresolved_ip is the test. As client:"unresolved_ip" it is the literal text.
Before: the chip client = Unresolved IP.
After:
client:unresolved_ipA pattern on a screen that has no patterns
Before: the chip view_name = 50%.
After:
view_name:50%A regular expression in a pipeline
Only pipelines accept /regex/ terms.
Before: a pipeline rule with body MATCH "pay.*ment".
After:
body:/pay.*ment/A pipeline pattern that ran as a contains test
Before: a pipeline rule with workload LIKE "Pay%". It matched Pay anywhere in the value, with case.
After:
workload:/Pay/A pipeline list that now uses every value
A pipeline or log-to-metric condition with is, is not, a comparison, LIKE, ILIKE or MATCH and several values only ever used the first value. The other values never ran. The filter uses every value, so once you save the rule it can match more logs. For is not, the rule now excludes every listed value, so it matches fewer.
Before: a pipeline rule with workload LIKE "Pay%" and "Cart%". Only Pay% ran.
After:
(workload:/Pay/ OR workload:/Cart/)A variable that is not a whole value
The filter keeps that and quotes the value.
Before: a filter value $env-api.
After:
workload:"$env-api"A trace attribute comparison that ran as an equality
Before: a saved trace chip on @http.status_code with the value >=500 ran as an equality, @http.status_code:500.
After:
@http.status_code:500Free text on traces, ignored
Before: the chip service = payment and the free text checkout.
After:
service:paymentThe exact notice wording
Every notice as the editor words it
| Notice | Kind | What the editor says |
|---|---|---|
pipeline_list_all_values | Changes what the filter matches | A condition in it lists several values, but only the first one ever ran; the filter uses every value, so the rule can match more logs once saved (a not-equals excludes more). |
ilike_unicode_fold | Changes what the filter matches | A case-insensitive match in it folds letters outside A to Z differently from before. |
body_exact_to_token | Changes what the filter matches | A body equality in it now matches the word anywhere in a body, in any case, instead of the whole body. |
text_never_ran_empty | Changes what the filter matches | Its saved text never ran, so the filter is now empty and matches every row; retype the condition if you want one. |
text_never_ran_from_chips | Changes what the filter matches | Its saved text never ran, so the filter is rebuilt from its chips. |
token_to_substring | Changes what the filter matches | A word search on a field now matches the text anywhere in a value, such as Repayments for payment, in any case. |
token_to_equals | Changes what the filter matches | A word search on a field other than body now matches only the whole value. |
leaf_never_ran_repaired | Changes what the filter matches | A condition in it was unreadable and never ran; it now applies as the condition it meant. |
leaf_never_ran_dropped | Changes what the filter matches | A condition in it has no value and never ran, so it is left out. |
exist_never_ran | Changes what the filter matches | An exist check in it failed with an error before; it now checks that the field has a value. |
leaf_now_applies | Changes what the filter matches | A condition in it was ignored before and now applies, so it matches fewer rows. |
trace_freetext_dropped | Kept exactly | Free text in it is ignored on traces, as it always was. |
unknown_field_kept | Changes what the filter matches | A field in it is not one the filter knows and never worked; it is kept as written, so the filter bar reports it. |
match_regex_to_glob | Changes what the filter matches | A regular expression in it never ran here and is now the equivalent pattern. |
match_regex_kept | Changes what the filter matches | A regular expression in it never ran here and only a pipeline accepts one, so the filter bar reports it. |
variable_kept_literal | Kept exactly | A $name in it is not a whole value, so a saved panel never filled it in and it searches for that text. |
unknown_variable_ignored | Changes what the filter matches | It names a $name this dashboard does not have; it was searched as text or dropped before, and the filter ignores it. |
attr_compare_both_maps | Changes what the filter matches | A comparison on an attribute read only the number map before; it now also matches values stored as text that read as numbers. |
view_chips_over_tree | Changes what the filter matches | This saved view runs from its chips, which differ from the filter stored beside them; the text is what the chips run. |
attr_other_map_also | Changes what the filter matches | This attribute condition read only the text values (or only the number values) of the field; it now also matches the value stored as the other type. |
typed_equality_to_text | Changes what the filter matches | An equality in it compared the value with its own type (a number, or a text that reads as one). The filter compares the text form, so @code:500 now matches both the number 500 and the text 500, whichever way it was written. |
same_field_or_collapses | Kept exactly | It ORs conditions on one field, such as (workload:a OR -workload:b), which matches more than it reads like. |
same_field_tautology | Kept exactly | A range on one field matches every row. |
exist_column | Kept exactly | An exist check in it tests that a column is not empty, and the filter writes it as column:*. |
ip_sentinel | Kept exactly | The Unresolved IP value on client tests that the client is an IPv4 address, and the filter writes it as client:unresolved_ip. |
literal_pattern_non_logs | Kept exactly | A pattern here is read as literal text. |
match_regex | Kept exactly | It uses a regular-expression match. |
like_runs_as_contains | Kept exactly | A pattern in it runs in this pipeline as a contains test, and is written as one. |
kql_does_not_compile | Changes what the filter matches | Its saved text never ran as written and the filter it converts to does not compile; the bar shows where. |
raw_attr_gt_equality | Kept exactly | A trace attribute chip in it with a comparison such as >=500 ran as an equality, and the filter keeps what ran. |
For API and Terraform users
The notice names are the heading anchors and the values of kql_flags.
An API client sees a filter that never ran as written as converted_intent: true in the answer of the conversion endpoint, POST /api/kql/from-legacy. The kql_flags list is then always present and names each cause. When the converted filter is not valid, the list also holds kql_does_not_compile.