Coming from Basic
How each Basic chip and facet click reads as a filter, what changes, and how links open.
This page is for people who filtered with chips in the Basic tab. The tab now holds a line of filter text. Facet clicks, value suggestions and Filter by actions still work, and each one writes a term into the text. If you only click, nothing about how you work has to change.
KubeSense converts a saved chip filter to filter text when you open it, and shows a notice when the conversion changed what it matches. See What changed when your filter was converted.
Chip to filter
| In Basic | As a filter | Notes |
|---|---|---|
Include chip workload = payment | workload:payment | |
Exclude chip workload != payment | -workload:payment | |
One chip with several values, payment and cart | workload:(payment OR cart) | Several values on one field mean any of them. |
| Several excluded values | -workload:(payment OR cart) | None of them. |
| Chips on different fields | type:ERROR workload:payment | Chips on different fields must all match. A space means AND. |
A value with %, such as pay% | workload:pay* | % becomes * and _ becomes ?. |
Excluded patterns, %pay% and %kafka% | -workload:(~*pay* OR ~*kafka*) | An excluded pattern ignores letter case, as in Basic. |
An attribute chip, http.route = /checkout | @http.route:/checkout | Attributes start with @. |
An attribute above a number, http.status_code > 400 | @http.status_code>400 | |
Free text timeout | body:timeout | Logs only. timeout alone means the same. |
Free text with several words, connection reset | body:"connection reset" | The phrase connection reset, in any case. |
| In Basic | As a filter | Notes |
|---|---|---|
service = checkout, status = error | service:checkout status:error | |
status_code = 500 or 502 | status_code:(500 OR 502) | |
duration > 5 ms | duration_ms>5 | Basic read a duration chip as milliseconds. The filter puts the unit in the field name. |
client = Unresolved IP | client:unresolved_ip | A test that the client is an IPv4 address, not the text Unresolved IP. See The Unresolved IP chip. |
Some chips use old names, and the filter bar renames them. On logs, pod_name is instance, level is type, cluster is domain and host is node. On traces, return_code is status_code, kind is role, subtype is method and app_service is service. The full list is in filter field names.
Where Basic and the filter bar read a filter differently
Basic joined two chips on the same field with OR, even an include and an exclude. KubeSense keeps that in a saved filter, so the rows do not change. An include chip workload = payment and an exclude chip workload != cart become:
workload:payment OR -workload:cartA notice tells you so. Most people meant workload:payment -workload:cart. See One field, an include or an exclude, joined by OR.
On traces, Basic ignored free text. A saved trace filter with free text opens as a filter without it and shows a notice. See Free text on traces, ignored.
Facets, details and suggestions
- Facets. Facet counts follow the filter text. Clicking a value adds
field:valueto the end of the text, and the count beside it is the number of rows you get. - Log and span details. Filter by and the exclude action add
field:value,-field:valueor@key:value. A term already in the text is not added twice. - Removing a term. Delete it from the text. There is no chip with an x.
- Suggestions. Type a field name or
workload:to see fields or values with counts. Press Tab to accept one. Ctrl+Space (Cmd+Space on a Mac) opens the field list.
When the text has an OR outside brackets, KubeSense wraps it in brackets before it adds a term, so the new term still joins with AND.
Links and saved views
Links from before the filter bar still work and open as filters, with a notice when the conversion changed what they match. A saved Basic view opens the same way and changes only when you save it again. See Links and agents and Saved views.