Author Archives: cowman.chiang

[Java] Eclipse IDE.

Download and install JDK. Edit Windows Environment setting. (Advanced system settings => Advance => Environment variables => Choose Path and click edited => Add the location of the bin folder of the JDK installation.) Ex: “C:Program Files (x86)Javajre1.8.0_31bin” Check the … Continue reading

Posted in Eclipse, Java | Leave a comment

[Excel] Find the latest value

If we want use excel to get the value F. F = A * B * C * D * E The common method is using the upper mathematical formulas. But if we adjust the columns, we may get the … Continue reading

Posted in Excel | Leave a comment

[Elasticsearch] The health status means…

When we list the indexes, we will get the status information. It shows the health of index in the elasticsearch cluster. green All shards are allocated. yellow The primary shard is allocated but replicas are not. red The specific shard … Continue reading

Posted in Elasticsearch | Leave a comment

[Elasticsearch] List all indexes and optimize it.

When we deleted the indexes, the data were just marked by deleted. We can list all indexes to show status. sudo curl ‘localhost:9200/_cat/indices?v’ It will show the health, index name, pri, rep, docs.count, docs.deleted, store.size, pri.store.size. health index pri rep … Continue reading

Posted in Elasticsearch | Leave a comment

[Nagios][Cacti] Monitor disk space > 8TB

Because the limitation of snmp, when the disk space is more than 8TB, we will get the wrong value. Whether we use snmpwalk or snmpget, the results are all the same. Therefore, we need to restore the correct value. If … Continue reading

Posted in Cacti, Nagios, SNMP | Leave a comment

[Logstash] Pattern set in grok.

The original warning message is this. “You are using a deprecated config setting “pattern” set in grok. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. You should use this instead: match => … Continue reading

Posted in Logstash | Leave a comment

[Sublime Text] Enable BIG5 support

In default, sublime text editor does not support BIG5 character, so you must install “ConvertToUTF8” package.

Posted in Sublime Text 2 | Leave a comment

[Kibana] Time range search

If I want to search information within these seven days. @timestamp:[“now-7d” TO “now”] If I want to search information between 2015-01-01 and 2015-01-31. @timestamp:[“2015-01-01” TO “2015-01-31”] If I want to search information between 2015-02-01 13:00:00 and 2015-02-01 18:00:00. @timestamp:[“2015-02-01T13:00:00” TO … Continue reading

Posted in Kibana | Leave a comment

[Splunk] Get the quota exceeded count

When we want to find some way to get the count of the quota exceed event, we might find this page “Splunk > Wiki : Community:TroubleshootingIndexedDataVolume Troubleshooting Indexed Data Volume”. Then we could use the following to get the count. … Continue reading

Posted in Splunk | Leave a comment

[Ubuntu] Enable power saving in Lenovo X61

Ref: http://www.webupd8.org/2014/04/prevent-your-laptop-from-overheating.html Because I installed Ubuntu 14.04 in my Lenovo X61. Although it could switch into the sleep mode after closing the lid. It’s not really using the power saving mode. So we must edit the GRUB file. sudo vim … Continue reading

Posted in Ubuntu | Leave a comment