PEBA icon indicating copy to clipboard operation
PEBA copied to clipboard

Create statistics index

Open y0sh188 opened this issue 6 years ago • 5 comments

Hi,

I'd like to know how to create statistics index in elasticsearch. I accessed public get endpoint 'alert/getStats?' on my peba server, I got this error message.

[2019-08-27 07:24:15,157] ERROR in tpotstats: ElasticSearch error: TransportError(404, 'index_not_found_exception', 'no such index')

Thanks,

y0sh188 avatar Aug 27 '19 07:08 y0sh188

did you setup the indices? The script is located at ./misc/setup-es-indices.py

vorband avatar Aug 27 '19 07:08 vorband

There is no "statistics index" in "setup-es-indices.py"

y0sh188 avatar Aug 27 '19 07:08 y0sh188

that's correct. Currently the statistics stuff is not in the public repo, hence you cannot use this endpoint,. There is a job script which needs to be added. I will look into this later.

vorband avatar Aug 27 '19 07:08 vorband

I see. Is it possible to share a job script and index script?

y0sh188 avatar Aug 29 '19 09:08 y0sh188

I will check this. Not sure I can.

vorband avatar Aug 29 '19 10:08 vorband