Python log generator for Elasticsearch. Simulates app logs for testing, monitoring & security. š
1.0K
A lightweight Python-based log generator designed to simulate real-world application logs and send them to Elasticsearch. Ideal for testing log pipelines, Kubernetes monitoring setups, and security analysis.
ā
Generates realistic JSON logs similar to a Python microservice
ā
Simulates multiple services (auth-service, payment-service, etc.)
ā
Sends logs directly to Elasticsearch
ā
Supports random log levels (INFO, ERROR, DEBUG, etc.)
ā
Includes user IDs, trace IDs, and hostnames for observability
ā
Runs efficiently in Kubernetes
š¹ Kubernetes logging testing ā Simulate application logs in EFK/ELK stacks
š¹ Security monitoring validation ā Generate structured logs for SIEM tools
š¹ Incident response training ā Use fake logs to test forensic analysis
š¹ Performance testing ā Benchmark log ingestion at scale
1ļøā£ Pull the image from Docker Hub
docker pull razvan1/elasticsearch-log-generator:latest
2ļøā£ Run the container (with default Elasticsearch target)
docker run -e ELASTICSEARCH_HOST="http://my-es-server:9200" -e ELASTICSEARCH_INDEX="custom-logs" razvan1/elasticsearch-log-generator:latest
3ļøā£ Deploy in Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: log-generator
spec:
replicas: 2
selector:
matchLabels:
app: log-generator
template:
metadata:
labels:
app: log-generator
spec:
containers:
- name: log-generator
image: razvan1/elasticsearch-log-generator:latest
env:
- name: ELASTICSEARCH_HOST
value: "http://elasticsearch.default.svc.cluster.local:9200"
- name: ELASTICSEARCH_INDEX
value: "k8s-logs"
kubectl apply -f deployment.yaml
At OpenThreat, we specialize in security analytics, threat intelligence, and log monitoring solutions. This tool is part of our ongoing research into log management, threat detection, and SIEM optimization. If you're looking for advanced security monitoring, get in touch. š
š **More info: ** openthreat.roā
š§ **Contact us: ** [email protected]ā
Content type
Image
Digest
sha256:5e183b033ā¦
Size
53 MB
Last updated
over 1 year ago
docker pull razvan1/elasticsearch-log-generator