Skip to content

Instantly share code, notes, and snippets.

@arslanm
arslanm / Makefile
Created July 21, 2017 06:36
Makefile to create docker image for filebeat as DaemonSet
all: build push
REGISTRY=your.registry.address
IMAGE=filebeat
TAG=5.5.0
build:
docker build -t $(IMAGE):$(TAG) -t $(REGISTRY)/$(IMAGE):$(TAG) .
docker build -t $(IMAGE):$(TAG) -t $(REGISTRY)/$(IMAGE):latest .
@arslanm
arslanm / filebeat.yml
Last active July 21, 2017 06:35
filebeat.yml config file for filebeat as DaemonSet
filebeat.registry_file: /var/log/filebeat.registry
logging.level: ${LOG_LEVEL:error}
# if you want cloud metadata included in your elastic
processors:
- add_cloud_metadata:
fields_under_root: true
fields: