We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b091c57 commit f2be50fCopy full SHA for f2be50f
elastiwatch/elastiwatch/logs.go
@@ -169,11 +169,10 @@ func (l *LogWatch) runOnce() {
169
res, err := l.cli.Search(context.Background(), &opensearchapi.SearchReq{
170
Indices: []string{l.index},
171
Params: opensearchapi.SearchParams{
172
- Query: `NOT severity:debug`,
+ Query: `NOT severity:debug AND @timestamp:[now-1m TO now]`,
173
Sort: []string{"@timestamp:desc"},
174
Size: opensearchapi.ToPointer(10000),
175
Pretty: true,
176
- Scroll: time.Minute,
177
},
178
})
179
if err != nil {
0 commit comments