yummycake
(Syazwan )
November 17, 2020, 7:07am
1
I have ingested the data from CSV into Elasticsearch, however, when I view them in 'Discover, Kibana' the ID did not ingest in order.
The field 'ID' in the CSV doc starts from 1
For example, instead of:
1
2
3
4
It was ingested like this:
4
2
1
3
Here is my logstash.conf
filter {
csv {
separator => ","
columns => ["ID","Title","Grant ($)"]
}
Is there any way I can sort this out (no pun intended)?
warkolm
(Mark Walkom)
November 17, 2020, 7:16am
2
Not in Logstash.
Did you sort by the ID field in Kibana?
yummycake
(Syazwan )
November 17, 2020, 7:29am
3
Hi @warkolm ! My ID is in strings. I am not sure how to do the sort in Kibana though.
Any help?
Is it something like this
POST/my_index/
{
"sort" : [
{ "ID" : {"order" : "asc"}}
warkolm
(Mark Walkom)
November 17, 2020, 7:30am
4
If you click on the column header you can sort.
yummycake
(Syazwan )
November 17, 2020, 7:37am
5
I believe I have to convert the ID to integer to make this work?
system
(system)
Closed
December 15, 2020, 7:37am
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.