Hi,
recently I encountered issue with reporting plugin from X-Pack.
We are running ELK stack with only Basic license for X-Pack, in version 7.5.2.
Previously, reporting was working without any issues.
Few days ago I noticed that the reports are not processed correctly. When I generate some report, it is not added to Management/Reporting.
I can see some error logs from Kibana showing that there is some error with older report:
{"type":"response","@timestamp":"2020-06-15T09:47:36Z","tags":["api"],"pid":25849,"method":"post","statusCode":200,"req":{"url":"/api/reporting/generate/csv?jobParams=","method":"post","headers":{"host":"127.0.0.1:5601","sec-fetch-dest":"empty","kbn-version":"7.5.2","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36","dnt":"1","content-type":"application/json","accept":"*/*","origin":"https://domain","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","referer":"https://domain/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9","x-forwarded-for":"10.10.100.212","x-forwarded-host":"domain","x-forwarded-server":"domain","connection":"Keep-Alive","content-length":"1404","x-ror-kibana-request-path":"/api/reporting/generate/csv","x-ror-kibana-request-method":"post"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"https://domain/app/kibana"},"res":{"statusCode":200,"responseTime":90,"contentLength":9},"message":"POST /api/reporting/generate/csv?jobParams= 200 90ms - 9.0B"}
{"type":"log","@timestamp":"2020-06-15T09:47:40Z","tags":["reporting","esqueue","queue-worker","info"],"pid":25849,"message":"kbgb8bge0jy1d6c375ci88i0 - Job marked as claimed: /.reporting-prod.kibana-2020.06.14/_doc/kbgbdltx0jy1d6c3757zln51"}
{"type":"log","@timestamp":"2020-06-15T09:47:40Z","tags":["reporting","esqueue","queue-worker","info"],"pid":25849,"message":"kbgb8bge0jy1d6c375ci88i0 - Starting job"}
{"type":"log","@timestamp":"2020-06-15T09:47:40Z","tags":["reporting","esqueue","queue-worker","info"],"pid":25849,"message":"kbgb8bge0jy1d6c375ci88i0 - Job execution completed successfully"}
{"type":"log","@timestamp":"2020-06-15T09:47:40Z","tags":["reporting","esqueue","queue-worker","info"],"pid":25849,"message":"kbgb8bge0jy1d6c375ci88i0 - Job data saved successfully: /.reporting-prod.kibana-2020.06.14/_doc/kbgbdltx0jy1d6c3757zln51"}
{"type":"log","@timestamp":"2020-06-15T09:47:46Z","tags":["reporting","esqueue","queue-worker","warning"],"pid":25849,"message":"kbgb8bge0jy1d6c375ci88i0 - _claimPendingJobs encountered a version conflict on updating pending job kbgbdltx0jy1d6c3757zln51: Error: [version_conflict_engine_exception] [kbgbdltx0jy1d6c3757zln51]: version conflict, required seqNo [3], primary term [1]. current document has seqNo [5] and primary term [1], with { index_uuid=\"6t-7lSrBQc2tER5tuZGQ2A\" & shard=\"0\" & index=\".reporting-prod.kibana-2020.06.14\" }\n at respond (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)\n at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)\n at HttpConnector.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)\n at IncomingMessage.wrapper (/usr/share/kibana/node_modules/elasticsearch/node_modules/lodash/lodash.js:4929:19)\n at IncomingMessage.emit (events.js:194:15)\n at endReadableNT (_stream_readable.js:1103:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)"}
Interesting is the line:
_claimPendingJobs encountered a version conflict on updating pending job kbgbdltx0jy1d6c3757zln51: Error: [version_conflict_engine_exception]
I tried to restart Kibana, to remove and rename Kibana reporting index, to remove .kibana_task_manager indices, but with no luck.
Reporting still failes.
Thanks for any help,
Andrej.