https://github.com/freedomben/logging-tester
https://github.com/freedomben/logging-tester
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/freedomben/logging-tester
- Owner: FreedomBen
- Created: 2020-09-30T00:24:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-30T00:24:49.000Z (over 5 years ago)
- Last Synced: 2025-04-22T21:59:50.515Z (about 1 year ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# logging-tester
This logging tester is a simple app that prints to standard out so you can test that your logging aggregator is picking up logs like you expect.
## Usage
To use, simply deploy to your cluster with a Deployment or DeploymentConfig. The script will write to stdout every 1 second with a datetime stamp. You can then look for the output in your logging aggregator (either the built-in EFK stack or Splunk or something else).
```yaml
apiVersion: v1
kind: List
metadata: {}
items:
- apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: logging-tester
name: logging-tester
spec:
replicas: 1
selector:
matchLabels:
app: logging-tester
template:
metadata:
labels:
app: logging-tester
spec:
containers:
- image: quay.io/freedomben/volume-tester:latest
name: logging-tester-container
imagePullPolicy: Always
```