-
Notifications
You must be signed in to change notification settings - Fork 5
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
add log alerts functionality to the visualize dockerfile #17
base: master
Are you sure you want to change the base?
Conversation
visualize-scripts: | ||
image: semtech/mu-scripts:1.0.0 | ||
volumes: | ||
- ./scripts/visualize-scripts:/app/scripts/ | ||
restart: "no" | ||
log-alert: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what we think about directly adding this to the visualize docker compose file... do you think it should be in a separate file?
elasticsearch.hosts: ["http://elasticsearch:9200"] | ||
#elasticsearch.username: "kibana_system" | ||
#elasticsearch.password: "elasticpassword" | ||
xpack.encryptedSavedObjects.encryptionKey: changemeishouldbeakeyofatleast32charactersbutnotthisoneitsunsafe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without this key, kibana didn't want to allow me to create alerts.
@@ -1,12 +1,15 @@ | |||
# app-http-logger | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oof... seems my autoformatter had its way with this file... apologies... will mark the relevant section with a comment
- `ENCRYPT_RECIPIENT` is the e-mail address of the encryption key. | ||
- Additional configuration is documented in the [README of the service](https://github.com/redpencilio/file-encryption-service) | ||
|
||
## enabling security |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this section is new
pipelining: | ||
max_events: 100000 | ||
|
||
path: | ||
data: /usr/share/elasticsearch/data | ||
|
||
xpack.security.enabled: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from what i could tell there was no security on the previous version (might be wrong!) i added info on how to proceed with enabling security in the readme
With this functionality, the log stream from kibana (so only kibana system logs) are sent to the log-alert-service, allowing it to monitor for server logs and to let an external api know about certain alerts configured in the kibana (e.g. number of error status codes is too high)
This is a workaround for the limitation that webhook connectors are not available in the free version of kibana.