Loading...

Blog

A Journey of a Thousand Miles Begins with a Single Step

Reindex Subset Data in Elasticsearch

The Elasticsearch Reindex API is a powerful way to index a subset of data from existing data. If you think of a long term statistics solution, you can aggregate data and store the aggregated values instead the atomic details. In my company we have an index that contains approximately 150 fields in each document. For a longterm solution only 30 are relevant. The Reindex API can just fetch the 30 desired fields and store them in a new index.

Read more

Elasticsearch Range Query

An accident in the Elasticsearch universe. Instead writing to an daily index it was index to a yearly index. Now I had to check the date range of the documents. The Elasticsearch Date Math is a great help for the Range Query.

Read more

Delombok Java Beans

If you are using Lombok you can let lombok generate via the Maven Plugin the source code.

Read more

Minify JSON

Another way to minify JSON is to use the npm package.

Read more

Convert JSON 2 CSV in JavaScript

json2csv is java script library which allows conversion of the format csv and json on a linux terminal.

Read more

Temporary Tables

Temporary tables exist in a special schema. If specified in the create table statement, the table is created as a temporary table. Temporary tables are automatically dropped at the end of a session, or optionally at the end of the current transaction. .. Any indexes created on a temporary table are automatically temporary as well.

Read more

Discard old builds in Jenkins

How to remove old builds as scripted pipeline in a Jenkinsfile? Not only I fail to see the sexiness in this new approach, but also I dislike the groovy syntax. In the end add I came up with several solutions to accomplish my goal: Keep only the last 10 builds. There are several ways and solutions. It was a huge try and error approach.

Read more

Elasticsearch Date Processor Pipeline

I write some configuration documents with the Elasticsearch low level Java Rest Client. The documents are missing a timestamp, therefore I define a simple pipeline, which adds the @timestamp field to my documents.

Read more

Remove multiple RPMs

A small recipe how to remove multiple applications with yum.

Read more