Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Rahien
Copy link

@Rahien Rahien commented Nov 16, 2023

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.

visualize-scripts:
image: semtech/mu-scripts:1.0.0
volumes:
- ./scripts/visualize-scripts:/app/scripts/
restart: "no"
log-alert:
Copy link
Author

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
Copy link
Author

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

Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant