You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @robomotic,
The error is caused by filter('term', log.file.path='xxx') since python doesn't accept dots '.' in functions named keywords (ie you can do some_thing="xxx" but not some.thing="xxx").
Here are the workarounds:
# replace '.' by '__', it will be automatically converted in '.'
.filter('term', log__file__path='first-org-conf-2015-eve.json')
# use the "native" query syntax
.filter('term', {"log.file.path": 'first-org-conf-2015-eve.json'})
# use the pandagg query classes
from pandagg.query import Term
.filter(Term(field="log.file.path", value='first-org-conf-2015-eve.json'))
Hi there,
I am struggling to make a simple match query via the Search class.
This is okay:
But I only want to filter to a subset.
This generates an error.
Where do I add the match syntax? Should I do via filter but how?
The text was updated successfully, but these errors were encountered: