Skip to content

Commit 30ac146

Browse files
authored
fix(modules): [PPT-2332] fix logQL search query (#424)
1 parent 11e2654 commit 30ac146

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

shard.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ shards:
211211

212212
placeos-frontend-loader:
213213
git: https://github.com/placeos/frontend-loader.git
214-
version: 2.7.1+git.commit.9972ac267ea4a24a4a120a449c7c05f7b26ad54b
214+
version: 2.7.1+git.commit.61aa561e3cfd1dd44e59a84d8e5051a386f2fcae
215215

216216
placeos-log-backend:
217217
git: https://github.com/place-labs/log-backend.git
@@ -267,7 +267,7 @@ shards:
267267

268268
search-ingest:
269269
git: https://github.com/placeos/search-ingest.git
270-
version: 2.11.3+git.commit.15283cd94ced2726c056be7bfb3afc36c6ae1254
270+
version: 2.11.3+git.commit.f7624ba5319a284db7294c784daed3fe08f7cd25
271271

272272
secrets-env: # Overridden
273273
git: https://github.com/spider-gazelle/secrets-env.git

src/placeos-rest-api/controllers/modules.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ module PlaceOS::Api
246246
client = Loki::Client.from_env
247247
labels = client.list_labels.data
248248
stream = labels.try &.includes?("container") ? "container" : "app"
249-
query = %({#{stream}="core"} | source = "#{current_module.id}" |~ "(?i)exception" | level = "ERROR|[E]")
249+
query = %({#{stream}="core"} | source = "#{current_module.id}" |~ "(?i)exception" | level =~ "ERROR|[E]")
250250
results = client.query_range(query, 20, error_timestamp - 1.hour, error_timestamp, Loki::Direction::Backward)
251251
entries = Array(String).new
252252
results.response_data.result.as(Loki::Model::Streams).each do |res_stream|

0 commit comments

Comments
 (0)