Skip to content

Instantly share code, notes, and snippets.

openapi: 3.0.3
info:
title: Simple Multipart Upload API
version: 1.0.0
paths:
/upload:
post:
summary: Upload a file with JSON metadata
requestBody:
required: true
@Piumal1999
Piumal1999 / main-logstash.conf
Created September 16, 2021 19:46
Logstash server: /etc/logstash/conf.d/main-logstash.conf
input {
beats {
port => "5044"
}
}
# Filter part not necessary
# filter {
# grok {
@Piumal1999
Piumal1999 / logstash.yml
Created September 16, 2021 19:46
Logstash server: /etc/logstash/logstash.yml
# Settings file in YAML
#
# Settings can be specified either in hierarchical form, e.g.:
#
# pipeline:
# batch:
# size: 125
# delay: 5
#
# Or as flat keys:
@Piumal1999
Piumal1999 / filebeat.yml
Created September 16, 2021 19:43
NginX web server: /etc/filebeat/filebeat.yml
###################### Filebeat Configuration Example #########################
# This file is an example configuration file highlighting only the most common
# options. The filebeat.reference.yml file from the same directory contains all the
# supported options with more comments. You can use it as a reference.
#
# You can find the full configuration reference here:
# https://www.elastic.co/guide/en/beats/filebeat/index.html
# For more available modules and options, please see the filebeat.reference.yml sample
@Piumal1999
Piumal1999 / system.yml
Created September 16, 2021 19:43
NginX web server: /etc/filebeat/modules.d/system.yml
# Module: system
# Docs: https://www.elastic.co/guide/en/beats/filebeat/7.x/filebeat-module-system.html
- module: system
# Syslog
syslog:
enabled: true
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
@Piumal1999
Piumal1999 / nginx.yml
Created September 16, 2021 19:43
NginX web server: /etc/filebeat/modules.d/nginx.yml
# Module: nginx
# Docs: https://www.elastic.co/guide/en/beats/filebeat/7.x/filebeat-module-nginx.html
- module: nginx
# Access logs
access:
enabled: true
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
@Piumal1999
Piumal1999 / apache.yml
Created September 16, 2021 19:41
Apache web server: /etc/filebeat/modules.d/apache.yml
# Module: apache
# Docs: https://www.elastic.co/guide/en/beats/filebeat/7.x/filebeat-module-apache.html
- module: apache
# Access logs
access:
enabled: true
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
@Piumal1999
Piumal1999 / system.yml
Created September 16, 2021 19:41
Apache web server: /etc/filebeat/modules.d/system.yml
# Module: system
# Docs: https://www.elastic.co/guide/en/beats/filebeat/7.x/filebeat-module-system.html
- module: system
# Syslog
syslog:
enabled: true
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
@Piumal1999
Piumal1999 / filebeat.yml
Created September 16, 2021 19:41
Apache web server: /etc/filebeat/filebeat.yml
###################### Filebeat Configuration Example #########################
# This file is an example configuration file highlighting only the most common
# options. The filebeat.reference.yml file from the same directory contains all the
# supported options with more comments. You can use it as a reference.
#
# You can find the full configuration reference here:
# https://www.elastic.co/guide/en/beats/filebeat/index.html
# For more available modules and options, please see the filebeat.reference.yml sample
@Piumal1999
Piumal1999 / elasticsearch.yml
Created September 16, 2021 19:39
Elastic search node: /etc/filebeat/modules.d/elasticsearch.yml
# Module: elasticsearch
# Docs: https://www.elastic.co/guide/en/beats/filebeat/7.x/filebeat-module-elasticsearch.html
- module: elasticsearch
# Server log
server:
enabled: true
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.