Archive by Author

JDBC River Plugin for ElasticSearch

You can easily load and index data from your MySQL database straight into Elasticsearch. First install Elasticsearch and make sure it’s running. Then open up a new terminal window and install the elasticsearch-river-jdbc plugin. You then need to use the curl command to tell the plugin your river name (in the URI), the database host […]

Lightweight socat UDP Logstash shippers

In my opinion it’s much better using a lightweight log shipper like socat to ship logs to Logstash. This way you can save yourself from running a Java process on the source host where your logs are. You can specify UDP as your Logstash input. The benefit of UDP is that nothing is negatively impacted […]

Caveats with Logstash udp input type and event splitting

What I noticed with logstash version 1.1.5 and even 1.1.1, is that when using the UDP input type in logstash, each line of input is not split into a separate event. The multiline filter expects each line of input to be a separate event, otherwise it won’t work properly. Therefore, before using the multiline filter, […]

Simplify your Life with and SSH Config File

This is a great post for those who ssh to many different hosts and have to remember which hostname, username, key and port to use for each server they want to connect to. http://nerderati.com/2011/03/simplify-your-life-with-an-ssh-config-file/

Logstash Rails – Collecting / Aggregating Rails Log Stacktrace with Logstash shipper agent

How to prepare and aggregate Rails logs for Logstash: Before tagging your stacktrace events from your Rails production.log, for example, you will want to write a multiline filter in Logstash which will include each stacktrace event as a separate entry. Each section of your Rails log starts with the word “Processing” and ends with two […]

Append private key from client to public key on host

You can append the contents of your private key to the public key on a server, with one command by doing the following:

Deauthorize Callback URL Setting to Localhost Won’t Work

Keep in mind that it’s not possible set the Deauthorize Callback URL in your Facebook App’s Advanced Setting to a URL hosted on localhost since Facebook is making the callback from their own servers, not from yours!

Installing PostgreSQL on a mac (Lion)

Check to see if you mac already has an older version of PostgreSQL installed: postgres –version which postgres If you see anything, that means you already have an older version of postgres installed. Install PostgreSQL via Home Brew: brew install postgresql Somewhere in the output after PostgreSQL is installed you’ll see the version of your […]

Git Fetch and Merge instead of Pull

Great Explanation of Git Fetch and Merge and why you should do that instead of git pull.

Bash Terminal Customizations for RVM and Git with git-completion.sh

In process of customizing my bash terminal prompt in my ~/.bash_profile, I thought it would be great to show which RVM and Git branch I was on. You can make yours look similar to this: Screenshot of what Navid’s Bash Terminal Looks Like The solution is to use git-completion.sh. You can get it via git: […]