This repo will be used for the Summit 2025 AIOps Lab
We have provided containers that are working on the service1 node. You can attach to the bash terminal by doing this:
podman exec -it cp-kafka bash
Here are some basic commands and troubleshooting:
- List all topics on kafka:
podman exec cp-kafka /opt/kafka/bin/kafka-topics.sh --list --bootstrap-server localhost:9092- Creating a topic called
httpd-error-logs:
podman exec cp-kafka /opt/kafka/bin/kafka-topics.sh --create --topic httpd-error-logs --bootstrap-server localhost:9092 --partitions 1 --replication-factor 1- Retrieving all logs from the
httpd-error-logstopic:
podman exec -it cp-kafka /opt/kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic httpd-error-logs --from-beginningYou can test error logs like simply using the echo command like this:
echo "Test error message $(date)" >> /var/log/httpd/error_log