Skip to content

Logging Configuration

Overview

HostSpace Kubernetes Engine (HKE) provides an enterprise-grade Kubernetes orchestration platform focusing on automated scaling, monitoring, and high availability. This documentation covers the logging configuration within HKE for DevOps engineers and platform administrators.

Key Features/Components

  • Centralized logging with fluentd
  • Integration with Elasticsearch and Kibana for log analysis
  • Customizable log storage options

Step-by-step Instructions or Configuration Details

  1. Enable Logging in HKE Cluster:

    • Navigate to the HKE dashboard.
    • Go to the cluster settings.
    • Enable logging and select the desired logging backend (Elasticsearch, etc.).
  2. Configure Fluentd for Custom Logging:

    • Modify the Fluentd configuration file in the cluster.
    • Add custom parsing rules or filters as needed.
    # Fluentd configuration example
    <match kubernetes.**>
    @type elasticsearch
    host elasticsearch-service
    port 9200
    logstash_format true
    </match>

Best Practices and Recommendations

  • Regularly monitor log ingestion rates and storage utilization.
  • Use log aggregation tools to efficiently analyze logs.
  • Encrypt log data in transit and at rest for security.
  • HKE CLI command for enabling logging:
    Terminal window
    hke cluster update --logging=true --log-backend=elasticsearch

Common Pitfalls and Solutions