Category Archives: Programming

Grails GGTS/Eclipse – Stop Server -Stop Button Not Working (Application Not Stopping/Killed)

Grails GGTS/Eclipse – Stop Server -Stop Button Not Working (Application Not Stopping/Killed)

           Since Grails version 2.3, there is a feature, Forked Execution which can be configured in grails-app/conf/BuildConfig.groovy to make build classpath independent from the runtime classpath. If you do not want this feature, you can comment the following line in grails-app/conf/BuildConfig.groovy. /* Comment Starts grails.project.fork = [ // configure settings for compilation JVM, note… Read More »

javax.net.ssl.SSLProtocolException – Message handshake alert: unrecognized_name Trace – getContentEncoding in java.net.URLConnection

javax.net.ssl.SSLProtocolException – Message handshake alert: unrecognized_name Trace – getContentEncoding in java.net.URLConnection

        This is an error due to a bug in Java version 1.7. It can be solved by adding the following line in your Java application. System.setProperty (“jsse.enableSNIExtension”, “false”);          This error occurs mainly in private or corporate networks where there are security protocols implemented.

Measure Logstash Performance using Metrics Filter – Issue/Error in Syntax (Unknown setting ‘message’ for stdout)

Measure Logstash Performance using Metrics Filter - Issue/Error in Syntax (Unknown setting 'message' for stdout)

Measure Logstash Performance using Metrics Filter – Issue/Error in Syntax (Unknown setting ‘message’ for stdout)

Measure Logstash Performance using Metrics Filter - Issue/Error in Syntax (Unknown setting 'message' for stdout)

       If you want to measure the performance of Logstash, Metrics plugin is way to go. The syntax given in the documentation(Documentation Link) does not work which is given below. if “metric” in [tags] { stdout { message => “rate: %{events.rate_1m}” } }         The correct syntax with working Logstash… Read More »

Logstash – Process Same Log File (File Input) from Beginning/Start

Process Same Log File from Beginning in Logstash

Logstash – Process Same Log File (File Input) from Beginning/Start

Process Same Log File from Beginning in Logstash

     Many might have faced this problem while using Logstash to process same log file from the beginning. The problem is that when you kill/stop a Logstash (file input) process and start it again, the process will continue from where Logstash left previously. For example, consider a logstash instance processing a file containing 1000… Read More »

Query Elasticsearch Cluster in Filter Section when using Logstash

Query Elasticsearch Cluster in Filter Section when using Logstash

Query Elasticsearch Cluster in Filter Section when using Logstash

Query Elasticsearch Cluster in Filter Section when using Logstash

     This article details about on how to query Elasticsearch from Logstash when processing logs or when using any other inputs. input { file { } #Any other inputs } filter { grok { pattern => “%{NUMBER:attribute1} %{GREEDYDATA:attribute2}” } elasticsearch { hosts => [“HOSTNAME:9200/index_name/type_name”] query => ‘field_name.sub_field:%{attribute1}’ fields => [“attribute3_elasticsearch”, “attribute3_new”,”attribute4_elasticsearch”, “attribute4_new”] #We can… Read More »