Skip to content

This is a clone from Ed Silva's Github (FluentBit). This is a very simple container used to send mock Apache Web Server access log activity to STDOUT. This container is used to demo different logging solutions via FluentBit, etc when it comes to containerized workloads.

License

Notifications You must be signed in to change notification settings

dcodev1702/apache-logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache-logs (container)

This is a clone from Ed Silva's Github.
This is a very simple container used to send mock Apache Web Server access log activity to STDOUT (every minute).

This container is used to demo different logging solutions e.g. FluentBit, etc when it comes to obtaining visibility via containerized workloads.

Build the container:

Azure Cloud Shell:

az acr build --registry aksregistryb3 --image apache-logs:v1 .

Docker (CLI):

cd apache-logs
chmod 755 gen.sh
docker build -t digitalkali/apache-logs .
docker login
docker push digitalkali/apache-logs:latest
docker run -d --rm --name apache-logs digitalkali/apache-logs
docker logs -f apache-logs
docker exec -it apache-logs /bin/sh

Kubernetes

Create the 'web' namespace before running the workload (container)

kubectl create namespace web

Run the containerized workload:

kubectl create -f ./deployment.yaml

Delete the containerized workload:

kubectl delete -f ./deployment.yaml

Display apache-log mock access log

kubectl logs -n web -f $(kubectl get pods -n web -l app=apache-log -o jsonpath='{.items[0].metadata.name}')

About

This is a clone from Ed Silva's Github (FluentBit). This is a very simple container used to send mock Apache Web Server access log activity to STDOUT. This container is used to demo different logging solutions via FluentBit, etc when it comes to containerized workloads.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published