Commit Graph
3486 Commits
Author SHA1 Message Date
Sai Nikhil 8291ded0b3 fix: multiple api calls issue while creating pipelines , alerts (#6531)
1. this PR fixes the issue #6530
2025-04-14 14:53:54 +05:30
Shyam Panjiyar 04b83127e7 test: sql vrl satisfied and no satisfied alert pytest (#6529) 2025-04-14 10:59:45 +05:30
Zhao.wei 41b3d2d0b0 fix: variable should not be escaped (#6516) 2025-04-14 12:09:00 +08:00
Hengfei Yang 00e93c126f feat: add query parquet cache metrics (#6526) 2025-04-14 11:38:35 +08:00
Loakesh Indiran dc34571344 fix: ws locks (#6528)
- [x] refactor `QuerierConnection` to use `RwLock`
- [x] add logs with `trace_id`
2025-04-13 22:54:04 +05:30
dependabot[bot] 012230a078 chore(deps-dev): bump vite from 6.2.5 to 6.2.6 in /web (#6521) 2025-04-13 16:36:17 +08:00
dependabot[bot] 418179c06a chore(deps): bump actions/create-github-app-token from 1 to 2 (#6484) 2025-04-13 16:35:55 +08:00
Sai Nikhil 064d029939 fix: schema page tab improvements (#6524)
1. This PR adds 
**previous approach** 
1. we were showing both All Fields and UDS tabs even user doesnot have
UDS enabled
2. UDS is shown as second tab


**current approach**
1. only show UDS if enabled otherwise show only All fields 
3. if UDS enabled show it as first tab and instead of All Fields(when
UDS enabled) renamed it to Other Fields and also added tooltip with some
explanatory text after Other Fields with a info icon as
**_

> Other fields show only the schema fields that existed before the
stream was configured to use a user-defined schema.

_**
2025-04-12 18:05:36 +05:30
Ashish Kolheandloaki07 805bbfa44b fix: upgrade actix-ws 0.3.0 to allow large payload limit (#6525)
Co-authored-by: loaki07 <rustyloaki@gmail.com>
2025-04-12 17:14:01 +05:30
Sai Nikhil 7e58382519 fix: race condition of alerts list handled (#6523)
1. This PR handles the issue of alerts of being overridden when user
tries to shift the folders rapidly
example:
folder1 -> 100alerts
folder2 -> 2alerts
folder3 -> 0 alerts
so first users goes to folder2 and fetches the alerts meanwhile user
goes to folder1 and immediately switches to folder3 , lets assume the
folder3 alerts are already fetched and they are in store then it will
show folder1 alerts because api takes time to resolve, overrides the
current alerts after resolving so tries to show the wrong folder alerts
2025-04-12 16:10:24 +05:30
Loakesh Indiran 35659689f5 fix: ws error code to match http code (#6519)
- [x] ws error code to match http error code
2025-04-12 12:21:58 +05:30
Sai Nikhil 0aa8969a77 fix: logs page issues (#6518)
this PR fixes
1. histogram loader should while both search and histogram request as
well as no data found should only show when there is no actual data not
at the time of loading
2. in the detail table when we add a field to the table it again shows
add a field to the table instead should show remove from the table
3. when user try to add fields using quick mode with sql mode off there
is one console error
2025-04-11 20:20:26 +05:30
Zhao.wei 1a7e379fea feat: check s3 config (#6514) 2025-04-11 19:10:41 +08:00
Sai Nikhil 63d17eb1a9 fix: show total events in distinct query when histogram is on (#6506)
1. this PR fixes the issue that is related to when user tries to run
distinct query when histogram is on
eg:
`SELECT DISTINCT body FROM "default"`
currently it will show total events as if 50 records per page it will
show
1 to 50 out of 50 events
2025-04-11 15:02:41 +05:30
Taiming Liu 7343e36ced fix: ingest route incorrectly recognized as ws route (#6513)
fix #6503
v0.14.6-rc3
2025-04-11 07:52:10 +05:30
Ashish Kolheandloaki07 26fbc61d65 fix: read and write locks (#6512)
- [x] ws v2 to use tokio `RwHashMap` instead of `Dashmap` to avoid dead
locks
- [x] `trace_id` when retry to be different after the first retry to get
a different querier from consistent hash
- [x] `user_id` for enterprise search event when run as single node

---------

Co-authored-by: loaki07 <rustyloaki@gmail.com>
2025-04-11 07:48:41 +05:30
Hengfei YangandTaiming Liu e163a4464a feat: auto-fix file size mismatch and report a warning (#6509)
Co-authored-by: Taiming Liu <liutaiming3@gmail.com>
2025-04-10 08:41:16 -07:00
Loakesh Indiranandomkark06 471c0c88b3 fix: ws fixes (#6504)
- [x] `Router-Client` if sending `pong` from `router` fails force close
the ws connection
- [ ] `Router-Querier` conn if `pong` is not received from querier for
certain time (ping_interval + 10 secs) then force close the connection
- [x] ws behavior should be such that if one querier disconnects from
the connection pool the entire `Router-Client` connection should not be
disconnected, searches/events should continue with other queriers in the
pool. Also, if one of the querier disconnects send `should_client_retry`
as `true`

---------

Co-authored-by: omkark06 <omkar@zinclabs.io>
2025-04-10 19:48:08 +05:30
Hengfei Yang ab9652e2fa feat: add file_time strategy for cache gc (#6489) 2025-04-10 19:58:42 +08:00
18d42d93e4 test(dashboard): add test cases for dashboard folder (#6500)
Co-authored-by: ktx-kirtan <124270523+ktx-kirtan@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-04-10 15:58:24 +05:30
Loakesh Indiran b598735a48 fix: ws Router-Querier conn reset & remove ws v1 (#6499)
- [x] add `jitter` to `ping_interval` for heartbeats
- [x] deprecate `is_connected` in `Connection` trait
- [x] remove `maintain_connection`, instead the `health_check` tokio
tasks for each querier will do the similar functionality by manual heart
beats
- [x] add `clean_up` for `QuerrierConnectionPool` & `QuerierConnection`
with graceful shutdown
- [x] use `ZO_INSTANCE_NAME` as the `req_id` for the connection between
the `Rotuer-Querier`
- [x] remove ws v1
2025-04-09 15:04:48 -07:00
Sai Nikhil a8c82017fa fix: ignore re render of histogram if pagination call (#6497)
This PR fixes the issue that is there related to histogram unnecessarily
re rendering in pagination calls happens
2025-04-09 17:04:32 +05:30
Loakesh Indiran dcfb10e9a6 feat: debug ws logs (#6498) 2025-04-09 14:48:30 +05:30
Sai Nikhil db07a9236f fix: additional resources in data source (#6496)
This PR adds some additional resources in data sources page that are
defined in the below issue
#6479
2025-04-09 12:12:20 +05:30
Hengfei Yang c3a6c8a69f fix: cpu usage (#6495)
It should be in 0~100%
2025-04-09 11:18:00 +08:00
Ashish KolheandHengfei Yang abf47e958a fix: avoid saving invalid query for alerts (#6493)
Fixes: 

- avoid saving invalid query for alerts 
- https://github.com/openobserve/openobserve/issues/6490

---------

Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
v0.14.6-rc2
2025-04-08 19:24:02 +05:30
Zhao.wei c87e536959 feat: add grpc search multi (#6491) 2025-04-08 20:36:17 +08:00
Subhra264 c89a2b30a8 fix: roles and groups post/delete endpoints should return json response on success (#6481)
As of now, we return no json body, when we save/delete roles/groups in
openobserve. It returns a json body like other apis.
v0.14.6-rc1
2025-04-08 10:56:26 +05:30
Sai Nikhil 6a61a4e199 fix: dynamic stream name should be taken for search job (#6482)
1. This PR fixes the issue that for search jobs stream type should be
taken from the response not static stream type
2025-04-07 20:54:59 +05:30
Hengfei Yang 6b745b20ec fix: enrichment loading on ingester (#6483)
- [x] fix: enrichment loading on ingester #6480 
- [x] fix: vrl with grpc search
v0.14.5
2025-04-07 22:55:32 +08:00
Sai Nikhil 3c456b4d8c fix: reset histogram only when user clicks run query (#6478) 2025-04-07 17:02:21 +05:30
Hengfei Yang da3f1df874 fix: use new sql replace old sql parser (#6477) 2025-04-07 18:31:43 +08:00
Hengfei Yang 17ac53e1c7 perf: reduce default download thread num (#6475)
Reduce the default value of `ZO_FILE_DOWNLOAD_THREAD_NUM` from `cpu_num
* 4` to `cpu_num / 2`, it took too many CPU for downloading.
2025-04-07 15:04:54 +08:00
Subhra264 9f8647c59d fix: rbac migration for service accounts for existing organizations (#6462)
When introducing service accounts rbac, we didn't do a rbac openfga
migration to save openfga tuples (`_all_{org_id}`) for existing
organizations. Hence as a result, viewer and editor are not able to
view/edit service accounts by default. Currently, they can do it only
after given service accounts explicitly through the roles edit UI page.

This pr fixes this by adding a migration which saves `_all_{org_id}`
tuples for every organizations.
2025-04-07 10:34:41 +05:30
Hengfei Yang 83a3fcb7f6 fix: improve tokio task consume (#6474)
## What is changed

- [x] Try to improve task starving issue
- [x] Update mmdb frequency
- [x] Improve slow log detection

## MMDB
- Removed ENV `ZO_MMDB_UPDATE_DURATION` because is in seconds
- Add new ENV `ZO_MMDB_UPDATE_DURATION_DAYS` is in days

## Tokio task

We try to use `task::coop` to improve task starving issue in Tokio.
<img width="1496" alt="image"
src="https://github.com/user-attachments/assets/1666488a-146b-49d7-b460-c629528e06f9"
/>
The second chart is for this PR, it is a big slow but more stable.
2025-04-07 12:03:56 +08:00
Prabhat Sharma 43e8c9fa99 chore: update screenshots (#6472)
Updated screenshots
2025-04-06 13:37:17 -07:00
dependabot[bot] 6b62dfe3b6 chore(deps-dev): bump vite from 6.2.4 to 6.2.5 in /web (#6469) 2025-04-06 18:26:52 +08:00
Zhao.wei 7f29b37fe8 feat: add a index check (#6468) 2025-04-04 23:31:48 +08:00
Hengfei Yang e08a2d2701 fix: optimize update slow (#6466)
Remove the sleep for update API.
2025-04-04 20:22:27 +08:00
Hengfei Yang 1d9343ae5f fix: add num_rows for node response for query (#6465)
With this PR we can print the num_rows returns by each node.
2025-04-04 19:21:04 +08:00
Abhay Padamani 8305945250 fix: validate filters config while dashboard panel save (#6460)
- #6464
2025-04-04 16:01:54 +05:30
Hengfei Yang c943d96a9b fix: search in memtable (#6461)
Input multiple target partition and output one partition get data
lossing.
2025-04-04 16:16:30 +08:00
ktx-vaidehi 25dc49dafc feat: dashboard filter value based on type (#6457) 2025-04-04 11:40:40 +05:30
Subhra264 28d9599856 fix: Do not delete Scheduled jobs in derived stream trigger handler and use module key for db_query_nums metrics (#6458)
- In case of errors related to pipeline not found/not enabled/not
derived stream, we no longer delete the scheduled_job when handling the
derived stream trigger in the alert manager. We push the errors to the
`triggers` stream and try to run it again after 5 mins.
- Add field `key` in the `db_query_nums` metric that includes the module
key that was deleted in the scheduled_jobs table.
2025-04-03 22:14:52 +05:30
Zhao.wei 871805a32c feat: impl ratelimit feature (#6072) 2025-04-03 23:47:18 +08:00
Sai Nikhil 595d9b3f4f fix: node list changes (#6449)
1. this PR will fix the issues in #6444
2025-04-03 19:07:26 +05:30
Hengfei Yang 01b6d255fc fix: #6454 (#6456)
fixed #6454
2025-04-03 19:14:03 +08:00
Shyam Panjiyar 6bed6730ed test: histogram reappears when enabled and data exists playwright (#6455) 2025-04-03 16:08:14 +05:30
Hengfei Yang dcb117498c perf: optimize tantivy generate (#6452)
This PR has some improves:
- Improve tantivy generate, from 7.7s -> 5.9s
- Improve STREAM_SETTINGS cache with atomic
- Add process metrics
- Remove zo_node_open_fd, node_tcp_conn_resets( use
`node_tcp_connections{state="resets"}`)
- Add debug logs for bulk api
- Add debug logs for tantivy panic
2025-04-02 09:40:06 -07:00
Sai Nikhil bdfb248006 fix: alerts owner should be logged in user (#6447)
1. This PR makes sure that cloned alert and imported alert owners should
be logged in users only
2025-04-02 13:37:19 +05:30