DevTech101

DevTech101

Month: March 2016

Upgrading Elasticsearch To A Newer Version

How to upgrading Elasticsearch To A Newer Version The key is exporting the instance. Disable shard movement curl -XPUT http://elk2.domain.com:9200/_cluster/settings -d ‘ { “transient”: { “cluster.routing.allocation.enable”: “none” } }’ Migrate to new version (on linux) export INS=1 alias cp=cp cd /opt /opt/elasticsearch-ins${INS}/bin/start_elastic.sh stop unzip -qq /var/tmp/elasticsearch-2.3.0.zip mv elasticsearch-ins${INS} elasticsearch-ins${INS}-2.2 mv elasticsearch-2.3.0 elasticsearch-ins$INS cd elasticsearch-ins${INS} cp …

Upgrading Elasticsearch To A Newer Version Read More »

Oracle OVN (Xsigo) Fabric Manager Installation

Contents 1 How to install Oracle Fabric Manager 1.1 First install OEL 6.x 1.2 Disable FireWall 1.3 Install apache 1.4 Prepare for Fabric Manager install 1.5 make sre java is installed and available 1.6 Install fabric manager 1.7 Install Performance Manager 1.8 Xsigo logs location 1.9 Xsigo director help How to install Oracle Fabric Manager …

Oracle OVN (Xsigo) Fabric Manager Installation Read More »

How to modify an active index type in elasticsearch

Elasticsearch: updating the mappings and settings of an existing index Note: This was written using elasticsearch 0.9. Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document: $ curl -X POST ‘http://localhost:9200/thegame/weapons/1’ -d \ ‘{ “_id”: 1, “name”: “Longsword”, “description”: “The Longsword can be wielded in …

How to modify an active index type in elasticsearch Read More »

Elasticsearch datatypes

Field datatypes edit On this page Core datatypes Complex datatypes Geo datatypes Specialised datatypes Multi-fields Elasticsearch Reference: Getting Started Setup Breaking changes API Conventions Document APIs Search APIs Aggregations Indices APIs cat APIs Cluster APIs Query DSL Mapping Field datatypes Array datatype Binary datatype Boolean datatype Date datatype Geo-point datatype Geo-Shape datatype IPv4 datatype Nested …

Elasticsearch datatypes Read More »

Logstash Nagios Configuration Grok example (logstash.conf)

Nagios logstash yml conf file input { file { # Wildcards work, here 🙂 path => [ “/var/log/messages” ] start_position => “beginning” type => “nagios-alert” } } #input { #tcp { #host => “10.10.10.1” #port => 3333 #type => “nagios-alert” #} #} filter { if [type] == “nagios-alert” { if [message] =~ /nagios3 nagios:/ { …

Logstash Nagios Configuration Grok example (logstash.conf) Read More »

elasticserach mappings

sql-log mappings “mappings”: { “sql-log”: { “properties”: { “sql_session_id”: { “store”: true, “type”: “string” }, “sql_duration_min”: { “store”: false, “index”: “not_analyzed”, “type”: “integer” }, “sql_duration_subsec”: { “store”: true, “index”: “analyzed”, “type”: “integer” }, “hostname”: { “store”: true, “type”: “string” }, “type”: { “type”: “string”, “store”: true }, “message”: { “type”: “string”, “index”: “not_analyzed”, “store”: false …

elasticserach mappings Read More »

Installing a Specific Version Of Grafana Server

How to install a specific version of Grafana server Installing a specific version yum install https://grafanarel.s3.amazonaws.com/builds/grafana-2.6.0-1.x86_64.rpm service grafana-server start /sbin/chkconfig –add grafana-server systemctl enable grafana-server.service systemctl status grafana-server Make sure to modify the config file according to your environment. /etc/grafana/grafana.ini