I'm an Elasticsearch beginner.
I have a problem about exporting csv in ES|QL.
Environment
OS: Debian 12
Elasticsearch Version: 8.15.2 (elasticsearch and kibana)
Problem
I tried exporting csv and got timeout error.
The message was as bellow.
Report contains warnings
Encountered an unknown error: Request timed out
Output
Status
Completed
Kibana version
8.15.2
Attempts
1 of 3
Content type
text/csv
Size in bytes
0
CSV rows
0
Search strategy
scroll
Report job ID
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Processed by
hostname (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
Timeout
3600 seconds
Timestamps
Time zone
Asia/Tokyo
Created at
2024-12-24T15:31:29.928+09:00
Started at
2024-12-24T15:31:32.401+09:00
Completed at
2024-12-24T15:32:04.304+09:00
Queue time
2.473 seconds
Execution time
31.903 seconds
I had changed the following parameters in kibana.yml but got the error yet.
Do you have a sample of the query you were running?
FROM sample-index_* METADATA _index, _id
| WHERE hostname IN ("AAAAAA","BBBBBB","CCCCCC","DDDDDD","EEEEEE","FFFFFF","GGGGGG","HHHHHH","IIIIII","JJJJJJ","KKKKKK","LLLLLL","MMMMMM","NNNNNN","OOOOOO","PPPPPP","QQQQQQ","RRRRRR")
| STATS mintime=MIN(@timestamp),maxtime=MAX(@timestamp) BY hostname,fieldA
| SORT mintime ASC
The total rows are 151.
How were you exporting the CSV?
After the search result has been displayed, I accessed as belows.
share -> Export -> Generate CSV -> "[Stack Management > Reporting]"
If you have any questions, please feel free to ask me.
Thanks for following up, @petition2307. Did you try it without the async API? Another workaround I thought of was running it in Python as described in this post and exporting from there.
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.