A Journey of a Thousand Miles Begins with a Single Step

Parse user agent strings into structured data based on BrowserScope data with logstash

The Apache HTTP Server logs user agent strings. The user agent string contains information like family, operating system, version, and device. Logstash offers a filter plugin to parse this information.

Read more

Logrotate Java Application Logs

Running a professional Java EE application with JBoss EAP/Wildfly or any other application server involves a good housekeeping strategy for log files. Pay attention that most developers make the mistake to log information twice, hence in most scenarios the default texturation is kept. So the log information will be written into the console.log and server.log. Furthermore if you don’t use a files size rotator, the server.log will be rotated daily. The potential threat is, if you write the logs to separate SAN partition with limited disk space, you might crash the application, if he has no disk space left. To prevent this, one possibility is to use logrotate on Linux for the job.

Read more

Delete zero byte files

If you the situation, that a lot of zero byte files exists in your current directory a simple find command, helps you to get rid of it.

Read more

Disable auto formatting in vim

vim has the behavior, if you paste a beginning line with comment, the following lines get also commented and indented. To disable this behavior switch to the paste mode.

Read more

Change client session language in sqlplus

If you are working with Oracle you may experience unexpected behaviors considering your Oracle’s National Language Support (NLS). Some SQL statements to setup properly for your working session.

Read more

Create a new pluggable database in Oracle DB

Create (admin) user for new pdb. Set password expiration to none.

Read more