Watcher's json query from Github

Hi Everyone!

I want to have a tracking or logs of those who made modification in the queries. Is it possible to integrate watcher to github? what i wanted to happen is that every one watcher (json query) would be inside a file and that file would be residing in Github.

Thanks in advance for your help!


You can't read watches from a file unfortunately, they need to be sent to ES via the APIs.

It's this way to reduce security issues stemming from people arbitrarily changing such config files (even in these sorts of cases).

Thanks for the reply!

Newbie here. I'm not into Dev works. my job is more into Operations. Can you send/show an example how to pull it off? just a simple example how to do it and I'll work from there.

You need something that sends the watch (as a json file) to Elasticsearch.

eg a commit hook that curls the file to Elasticsearch, or something like that.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.