Blog Archive

Convert a field from String to Number using Painless in Kibana – Elasticsearch

The Java method Integer.parseInt should make the trick, i.e: return Integer.parseInt(doc[‘myField.keyword’].value) If there some empty fields, add a condition: if(!doc[‘myField.keyword’].empty){ return Integer.parseInt(doc[‘myField.keyword’].value) } return 0 If all fields do not contain numeric characters, use regex: if(!doc[‘myField.keyword’].empty) { def m = /^([0-9]+)$/.matcher(doc[‘myField.keyword’].value); if ( m.matches() ) { return Integer.parseInt(m.group(1)) } } return 0 Note: regex is …

Continue reading

Désactiver l’authentification SSH par mot de passe

Plusieurs attaques se font sur nos serveurs SSH, notamment lorsque l’accès par login/mot de passe est activé. Pour contrer ceci il est possible grace à iptables, de restreindre l’accès SSH juste à certaines adresses IP, c’est dejà pas mal! Mais comme tout admin systême, nous aimons nous deplacer avec notre laptop, et avons souvent besoin …

Continue reading

Vol. 8, No. 4 of the MERLOT Journal of Online Learning and Teaching (JOLT) has been published

Vol. 8, No. 4 of the MERLOT Journal of Online Learning and Teaching (JOLT at http://jolt.merlot.org/) has been published and is available online. The papers that comprise the issue are listed below. Vol. 9. No. 1 of JOLT will be released in the coming weeks. As you may already know, Vol. 9, No. 2, the …

Continue reading

The Fifth Elephant 2013, India

Loading Map…. Bangalore, IndiaBangalore – Bangalore 12.9849041 77.67509399999994 The Fifth Elephant 2013 is a conference in India for big data, Hadoop, and data visualization organized by HasGeek. The conference meets June 20-22, 2013 in Bangalore, India. Conference website: http://www.fifthelephant.in/