Skip to content

Commit f2be50f

Browse files
committed
mistake
1 parent b091c57 commit f2be50f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

elastiwatch/elastiwatch/logs.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,10 @@ func (l *LogWatch) runOnce() {
169169
res, err := l.cli.Search(context.Background(), &opensearchapi.SearchReq{
170170
Indices: []string{l.index},
171171
Params: opensearchapi.SearchParams{
172-
Query: `NOT severity:debug`,
172+
Query: `NOT severity:debug AND @timestamp:[now-1m TO now]`,
173173
Sort: []string{"@timestamp:desc"},
174174
Size: opensearchapi.ToPointer(10000),
175175
Pretty: true,
176-
Scroll: time.Minute,
177176
},
178177
})
179178
if err != nil {

0 commit comments

Comments
 (0)