i am not able filter the data
body={'query': {
"bool": {
"must":
{"match": {"Id": "3"}}
,
"filter":
{"range": {"@timestamp": {"gte": "now-30m", "lte": "now"}}}
}}}
less than 30 minute query for elasticsearch using python...
i am not able filter the data
body={'query': {
"bool": {
"must":
{"match": {"Id": "3"}}
,
"filter":
{"range": {"@timestamp": {"gte": "now-30m", "lte": "now"}}}
}}}
less than 30 minute query for elasticsearch using python...
Welcome!
Please format your code, logs or configuration files using </>
icon as explained in this guide and not the citation button. It will make your post more readable.
Or use markdown style like:
```
CODE
```
This is the icon to use if you are not using markdown format:
There's a live preview panel for exactly this reasons.
Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.
Please update your post.
Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script is something anyone can copy and paste in Kibana dev console, click on the run button to reproduce your use case. It will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.