Microservices - Monitoring and ObservabilityWhat is the primary role of Logstash in the ELK stack for centralized logging?ATo collect, parse, and transform logs before sending them to ElasticsearchBTo store and index logs for fast search and retrievalCTo visualize logs and create dashboardsDTo generate logs from microservices automaticallyCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand ELK stack componentsElasticsearch stores and indexes logs, Kibana visualizes them, and Logstash processes logs.Step 2: Identify Logstash's functionLogstash collects logs from sources, parses and transforms them, then forwards to Elasticsearch.Final Answer:To collect, parse, and transform logs before sending them to Elasticsearch -> Option AQuick Check:Logstash role = Collect and transform logs [OK]Quick Trick: Logstash processes logs before storage [OK]Common Mistakes:MISTAKESConfusing Logstash with Elasticsearch storageThinking Kibana collects logsAssuming Logstash generates logs
Master "Monitoring and Observability" in Microservices9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More Microservices Quizzes Authentication and Authorization - JWT token propagation - Quiz 7medium Event-Driven Architecture - Event schema design - Quiz 6medium Monitoring and Observability - Distributed tracing (Jaeger, Zipkin) - Quiz 12easy Orchestration with Kubernetes - Liveness and readiness probes - Quiz 2easy Resilience Patterns - Graceful degradation - Quiz 2easy Resilience Patterns - Circuit breaker pattern - Quiz 12easy Resilience Patterns - Retry with exponential backoff - Quiz 9hard Service Mesh - Mutual TLS between services - Quiz 7medium Service Mesh - Service mesh concept - Quiz 11easy Service Mesh - Traffic management (routing, splitting) - Quiz 14medium