Skip to content

Instantly share code, notes, and snippets.

View tomasdanjonsson's full-sized avatar
🍀

Tómas Dan Jónsson tomasdanjonsson

🍀
View GitHub Profile
version: '3.8'
services:
# Elasticsearch service
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.7.1
hostname: elasticsearch
container_name: elasticsearchCS
environment:
- discovery.type=single-node # Run Elasticsearch as a single-node cluster
- xpack.security.enabled=false # Disable X-Pack security features
@tomasdanjonsson
tomasdanjonsson / filebeat.yml
Created May 8, 2023 01:20
Filebeat config file
filebeat.inputs:
- type: log
enabled: true
paths:
- /var/log/messages
output.logstash:
hosts: ['logstash:5044']
codec.json:
pretty: true
@tomasdanjonsson
tomasdanjonsson / logstash.conf
Created May 8, 2023 01:19
Logstash config file
input {
beats {
port => 5044
}
}
output {
http {
url => "http://nifi:8081/contentListener"
http_method => "post"
@tomasdanjonsson
tomasdanjonsson / syslog2.grok
Created May 8, 2023 01:17
Grok Expression for syslog2
%{SYSLOGTIMESTAMP:timestamp} %{HOSTNAME:host} %{WORD:process}\[%{NUMBER:pid}\]: %{GREEDYDATA:message}
@tomasdanjonsson
tomasdanjonsson / syslog.grok
Created May 5, 2023 21:04
Grok Expression for syslog
<%{POSINT:priority}>%{SPACE}%{SYSLOGTIMESTAMP:timestamp}%{SPACE}%{SYSLOGHOST:hostname}%{SPACE}%{DATA:application}\[%{POSINT:pid}\]:%{SPACE}%{GREEDYDATA:message}
@tomasdanjonsson
tomasdanjonsson / docker-compose.yml
Created May 5, 2023 19:48
docker-compose.yml for ElasticSearch 8.7.1, Kibana 8.7.1 and Apache NiFi 1.19.0
version: '3.8'
services:
# Elasticsearch service
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.7.1
hostname: elasticsearch
container_name: elasticsearchCS
environment:
- discovery.type=single-node # Run Elasticsearch as a single-node cluster
- xpack.security.enabled=false # Disable X-Pack security features