-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default docker image fails on Centos7 docker 19.03.3 #132
Comments
Also experiencing the same error with bitsensor/elastalert:latest (2.0.1). This has been an issue for a few weeks now (Yelp/elastalert#2204). Why isn't this fixed by now? How is a new user like myself supposed to use ElastAlert with ES 7.4 with this issue? Is there a workaround? |
@SysEngDan I got it working by replacing Also, you'll have to delete old indices. Something like that:
|
My solution was the same as @SlavikCA though now I get different errors when testing the rules:
To be fair, I was testing with the Kibana plugin. Haven't tried from the command line, not sure I'll have time. |
Thank you. This worked for me. |
Hello ! I have problem with running elastalert server.
I started docker and after that i got running container "bitsensor/elastalert:3.0.0-beta.1" I decided stopped it and run after that I got next result `[root@elastic elastalert]# docker images
09:18:08.004Z INFO elastalert-server: Config: No config.dev.json file was found in /opt/elastalert-server/config/config.dev.json. 09:18:19.728Z ERROR elastalert-server: ProcessController: Index create exited with code 1 09:18:21.642Z ERROR elastalert-server: 09:18:24.646Z ERROR elastalert-server: 09:18:31.658Z ERROR elastalert-server: 09:18:31.658Z ERROR elastalert-server: 09:18:31.660Z ERROR elastalert-server: 09:18:31.661Z ERROR elastalert-server: 09:18:31.661Z ERROR elastalert-server: 09:18:31.662Z ERROR elastalert-server: 09:18:31.662Z ERROR elastalert-server: 09:18:31.662Z ERROR elastalert-server: 09:18:31.662Z ERROR elastalert-server: 09:18:31.662Z ERROR elastalert-server: 09:18:31.663Z ERROR elastalert-server: 09:18:31.688Z ERROR elastalert-server: ProcessController: ElastAlert exited with code 1 |
Share how to get it working Elasticsearch 7.4.2
docker-compose.yml
es/config/elasticsearch.yml
kibana/config/kibana.yml
Dockerfiles/Dockerfile-kibana
Dockerfiles/Dockerfile-elastalert
elastalert/bin/elastic_search_status.sh
elastalert/bin/elastalert-start.sh
elastalert/config/config.json
elastalert/config/elastalert-test.yml
elastalert/config/elastalert.yml
|
Hi @nsano-rururu, I have followed the above folder structure and files for the elastalert server using docker. But after setting up authentication for ElastiSearch and Kibana (username: elastic, password: SomePassword) when we run docker-compose up it is throwing unauthorized exceptions. We have added the username and password to the ./config/config.json, ./config/elastalert-test.yml, ./config/elastalert.yml and mentioned in environment variables in docker-compose.yml file. After doing so, if we run docker-compose up it is still throwing the same error( unauthorized exceptions). Can you please help us in resolving this issue? |
bitsensor's elastalert-server does not support es_username and es_password on the api side of node.js. Maybe that's the cause of the error. The fork johnsusek / elastalert-server corresponds to es_username and es_password on the api side of node.js. See the URL below for the docker image. Refer to the following URL for settings |
Another possible cause. This may be more likely The following files may not work as they are. elastalert/bin/elastic_search_status.sh The following files may not work properly without modifying the following description. docker-compose.yml test: ["CMD-SHELL", "curl -f http://localhost:9200 || exit 1"] |
If you can give me information about the settings you want to change, such as elasticsearch, kibana, docker-compose.yml, I'll investigate, but if not, I won't do anything. |
14:41:11.846Z INFO elastalert-server: Server: Server started
14:41:13.489Z ERROR elastalert-server:
ProcessController: INFO:elastalert:Note: In debug mode, alerts will be logged to console but NOT actually sent.
To send them but remain verbose, use --verbose instead.
14:41:13.490Z ERROR elastalert-server:
ProcessController: INFO:elastalert:Starting up
14:41:13.528Z ERROR elastalert-server:
ProcessController: Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
14:41:13.528Z ERROR elastalert-server:
ProcessController: "main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/opt/elastalert/elastalert/elastalert.py", line 1929, in
14:41:13.531Z ERROR elastalert-server:
ProcessController: sys.exit(main(sys.argv[1:]))
File "/opt/elastalert/elastalert/elastalert.py", line 1925, in main
14:41:13.531Z ERROR elastalert-server:
ProcessController: client.start()
File "/opt/elastalert/elastalert/elastalert.py", line 1106, in start
14:41:13.534Z ERROR elastalert-server:
ProcessController: self.run_all_rules()
File "/opt/elastalert/elastalert/elastalert.py", line 1158, in run_all_rules
self.send_pending_alerts()
File "/opt/elastalert/elastalert/elastalert.py", line 1534, in send_pending_alerts
14:41:13.536Z ERROR elastalert-server:
ProcessController: pending_alerts = self.find_recent_pending_alerts(self.alert_time_limit)
File "/opt/elastalert/elastalert/elastalert.py", line 1526, in find_recent_pending_alerts
14:41:13.536Z ERROR elastalert-server:
ProcessController: size=1000)
File "/usr/lib/python2.7/site-packages/elasticsearch-7.0.1-py2.7.egg/elasticsearch/client/utils.py", line 84, in _wrapped
return func(*args, params=params, **kwargs)
TypeError: search() got an unexpected keyword argument 'doc_type'
14:41:13.595Z ERROR elastalert-server: ProcessController: ElastAlert exited with code 1
The text was updated successfully, but these errors were encountered: