Elasticsearch tips #2: modifying and removing index settings

Elasticsearch tip #2:

TL;DR: configure an index setting to null, to use the default

Quite often you might need to change an elasticsearch' index setting to something else than the default, e.g. to manually control the shard allocation process (allocating specific indices only on specific nodes):

# curl -XPUT …
more…

Ansible: Using conditional role dependencies

TL;DR: You can use when: in ${role}/meta/main.yml

A while ago I started using Ansible to provision some aspects of my lab and servers. At some point, for one of the roles being worked on (some elasticsearch mini-cluster in this particular case), a specific role needed to …

more…

Logstash tips #1: Measuring logstash performance

Earlier, I've mentioned that I intend to start a series of short notes and tips. Today, a new tip.

Logstash tip #1: measuring logstash performance

TL;DR: use the 'metrics' filter to gather metrics about your logstash instance.

A while ago I started using logstash for, well, collecting some logs …

more…

Elasticsearch tips #1: deploying Elasticsearch to multi-homed servers

I figured I should start a series of short notes (can't call them articles) about random stuff I encounter in my day-to-day job, and which took me some time to figure out. Here we go.

Elasticsearch tip #1:

TL;DR: make use of the network.publish_host setting when deploying ES …

more…

My .fluxbox/keys

Just for future reference. If you want - use it, at your own risk ;)

# click on the desktop to get menus
OnDesktop Mouse1 :HideMenus
OnDesktop Mouse2 :WorkspaceMenu
OnDesktop Mouse3 :RootMenu

# scroll on the desktop to change workspaces
OnDesktop Mouse4 :PrevWorkspace
OnDesktop Mouse5 :NextWorkspace

# scroll on the toolbar to change current window …
more…

colored git output

Ok, another issue I was facing after returning to Slackware:
I was getting weird escape codes in the terminal when issuing some git commands, like git log or git diff:

ESC[33mcommit e5f753a1ae0acf48110589ed654c1e1f67fd1a6fESC[m
Author: Floyd ****
Date:   Fri Jan 24 13:13:33 2014 -0800

    Initial commit

ESC[1mdiff --git …
more…

Slackware... and UTF-8

After about 5 years of debian, I'm running Slackware again on my laptop.

It's a beautiful distro, despite the fact that it doesn't have a 'proper' package management system by current standards. I'm managing my packages by using sbopkg, which is basically an automated tool that allows you to easily …

more…

found it... sieveshell

If you're wondering how to install sieveshell on Ubuntu (12.X), search no more, there's no such package. Instead, this tool is contained in the cyrus-admin package. Just do an aptitude install cyrus-admin and you're set!

more…

yay! tmux

It's been a long time since I've posted anything in here. In the meantime, I've changed my job (2 times), I've moved to another country :)

Just started using tmux, as a replacement for GNU screen. So far - so good, except that the default C-b control combination is not too convenient …

more…

simple named.conf for a caching nameserver on Slackware-current

You can control which networks/IPs can recursively access this nameserver by 'tweaking' the 'localnet' and 'remote-rec' ACLs

// /etc/named.conf
acl     localnet { 192.168.2.0/24; 127.0.0.1; };
acl     remote-rec { 1.2.3.4; };
options {
    directory "/var/named";
    /*
     * If there is a firewall between you and …
more…