Skip to content

Files

Latest commit

8eb620d · Dec 18, 2024

History

History

elk

ELK-stack integration

This directory contains the configuration files and Docker services needed to run Keep with a filebeat container. Useful if you want to test integration of Keep backend logs with Logstash and Kibana.

Directory Structure

proxy/
├── docker-compose-elk.yml   # Docker Compose configuration for elk integtation
├── filebeat.yaml            # Filebeat configuration file
├── logstash.conf            # Logstash configuration example to save keep-backend logs
└── README.md                # This files

Components

The setup consists of several services:

  • Filebeat: Filebeat container to push keep-backend logs to logstash
  • Keep Frontend: The Keep UI service configured to use the proxy
  • Keep Backend: The Keep API service
  • Keep WebSocket: The WebSocket server for real-time updates

Configuration

Environment Variables

LOGSTASH_HOST=logstash-host
LOGSTASH_PORT=5044

Usage

  1. Start the elk environment:
docker compose -f docker-compose-elk.yml up
  1. To run in detached mode:
docker compose -f docker-compose-elk.yml up -d
  1. To stop all services:
docker compose -f docker-compose-elk.yml down

Accessing Services

Kibana configuration

Custom Configuration

Modifying Proxy Settings

To modify the Filebeat configuration:

  1. Edit filebeat.yml
  2. Restart the filebeat service:
docker compose -f docker-compose-elk.yml restart filebeat

Modifying Logstash Settings

To modify the Logstash configuration:

  1. Edit logstash.conf
  2. Restart the logstash service:
docker compose -f docker-compose-elk.yml restart logstash

Security Considerations

  • This setup is intended for development environments only
  • SSL is disabled for all services for simplification

Contributing

When modifying the elk setup:

  1. Document any changes to configuration files
  2. Test the setup of elk environments
  3. Update this README if adding new features or configurations