Hello,
I’m wondering if anyone can advice in problem described below…
I receive following error on brand new Graylog 3.1.1:
No mapping found for [EventID] in order to sort on
Steps to reproduce:
- Brand new Ubuntu 18.04.3 LTS
root@graylogtest:/# cat /etc/issue
Ubuntu 18.04.3 LTS \n \l
- Graylog server installed according to installation manual
http://docs.graylog.org/en/3.1/pages/installation/os/ubuntu.html - I added GELF TCP input.
- I sent data to Graylog via GELF TCP.
- I navigated to “Search”, and tried to sort by field that was sent via GELF TCP input. I received following error:
No mapping found for [EventID] in order to sort on
- Next I navigated to: “Streams”-> “All Messages” and I tried to sort by the same field (EventID), no issues then.
Elastic search version:
root@graylogtest:/# curl -XGET 'localhost:9200'
{
“name” : “ElwSQ1b”,
“cluster_name” : “graylog”,
“cluster_uuid” : “17BD0BciSku_e3r8lgHVcQ”,
“version” : {
“number” : “6.8.2”,
“build_flavor” : “oss”,
“build_type” : “deb”,
“build_hash” : “b506955”,
“build_date” : “2019-07-24T15:24:41.545295Z”,
“build_snapshot” : false,
“lucene_version” : “7.7.0”,
“minimum_wire_compatibility_version” : “5.6.0”,
“minimum_index_compatibility_version” : “5.0.0”
},
“tagline” : “You Know, for Search”
}
Error in /var/log/elasticsearch/graylog.log
:
[2019-09-04T08:57:48,589][DEBUG][o.e.a.s.TransportSearchAction] [ElwSQ1b] [gl-system-events_0][0], node[ElwSQ1b4SeGtFyFq1Fm4-g], [P], s[STARTED], a[id=kAf9aWvwTRGyB33KKrv6Ww]: Failed to execute [SearchRequest{searchType=QUERY_THEN_FETCH, indices=[gl-events_0, graylog_0, gl-system-events_0], indicesOptions=IndicesOptions[ignore_unavailable=false, allow_no_indices=true, expand_wildcards_open=true, expand_wildcards_closed=false, allow_aliases_to_multiple_indices=true, forbid_closed_indices=true, ignore_aliases=false, ignore_throttled=true], types=[message], routing=‘null’, preference=‘null’, requestCache=null, scroll=null, maxConcurrentShardRequests=5, batchedReduceSize=512, preFilterShardSize=64, allowPartialSearchResults=true, localClusterAlias=null, getOrCreateAbsoluteStartMillis=-1, source={“from”:0,“size”:150,“query”:{“bool”:{“must”:[{“match_all”:{“boost”:1.0}}],“filter”:[{“bool”:{“must”:[{“range”:{“timestamp”:{“from”:“2019-09-04 08:42:48.538”,“to”:“2019-09-04 08:57:48.538”,“include_lower”:true,“include_upper”:true,“boost”:1.0}}}],“adjust_pure_negative”:true,“boost”:1.0}}],“adjust_pure_negative”:true,“boost”:1.0}},“sort”:[{“EventID”:{“order”:“desc”}}]}}] lastShard [true]
org.elasticsearch.transport.RemoteTransportException: [ElwSQ1b][127.0.0.1:9300][indices:data/read/search[phase/query]]
Caused by: org.elasticsearch.index.query.QueryShardException: No mapping found for [EventID] in order to sort on
at org.elasticsearch.search.sort.FieldSortBuilder.build(FieldSortBuilder.java:321) ~[elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.search.sort.SortBuilder.buildSort(SortBuilder.java:153) ~[elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:808) ~[elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.search.SearchService.createContext(SearchService.java:637) ~[elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:596) ~[elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:387) ~[elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.search.SearchService.access$100(SearchService.java:126) ~[elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:359) [elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:355) [elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.search.SearchService$4.doRun(SearchService.java:1107) [elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:41) [elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:751) [elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.8.2.jar:6.8.2]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_222]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]