Skip to content

Instantly share code, notes, and snippets.

View xtruthx's full-sized avatar

xtruthx xtruthx

View GitHub Profile
@xtruthx
xtruthx / elasticsearch-handlers-main.yml
Created April 11, 2019 15:42 — forked from labrown/elasticsearch-handlers-main.yml
Ansible rolling restart of Elasticsearch Cluster
---
###
# Elasticsearch Rolling restart using Ansible
###
##
## Why is this needed?
##
#
# Even if you use a serial setting to limit the number of nodes processed at one
@xtruthx
xtruthx / .gitignore
Created July 14, 2017 08:44 — forked from karmi/.gitignore
Example Nginx configurations for Elasticsearch (https://www.elastic.co/blog/playing-http-tricks-nginx)
nginx/
!nginx/.gitkeep
!nginx/logs/.gitkeep
src/
tmp/
@xtruthx
xtruthx / nginx-elasticsearch-proxy.conf
Created July 13, 2017 12:25 — forked from abrudtkuhl/nginx-elasticsearch-proxy.conf
NGINX Reverse Proxy Authentication For Elasticsearch
# Run me with:
#
# $ nginx -p /path/to/this/file/ -c nginx.conf
#
# All requests are then routed to authenticated user's index, so
#
# GET http://user:password@localhost/_search?q=*
#
# is rewritten to:
#
@xtruthx
xtruthx / nxlog.conf
Created October 23, 2015 08:03 — forked from mrlesmithjr/nxlog.conf
Windows nxlog.conf for Logstash
## Please set the ROOT to the folder your nxlog was installed into,
## otherwise it will not start.
#define ROOT C:\Program Files\nxlog
define ROOT C:\Program Files (x86)\nxlog
define ROOT_STRING C:\Program Files (x86)\\nxlog
Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\nxlog.pid
@xtruthx
xtruthx / bacula.conf
Last active August 29, 2015 14:15 — forked from jasperla/bacula.conf
input {
file {
path => [ '/home/jasper/bacula.log' ]
type => "bacula"
start_position => "beginning"
codec => multiline {
# Unless a line matches the regular bacula logformat, tag it onto the previous
patterns_dir => '/usr/local/logstash/patterns'
pattern => "(%{BACULA_INFO})|(%{BACULA_ERR})"
negate => true