Skip to content

Instantly share code, notes, and snippets.

View GeroSalas's full-sized avatar
🏠
Working from home

Geronimo Ezequiel Perez Salas GeroSalas

🏠
Working from home
View GitHub Profile
@GeroSalas
GeroSalas / ELK-install.sh
Created June 2, 2018 12:45 — forked from sniper7kills/ELK-install.sh
ELK-Install-Ubuntu-16.04
#/bin/bash
#Ask some info
echo -n "Enter ELK Server IP or FQDN: "
read eip
echo -n "Enter Admin Web Password: "
read adpwd
#Update System
sudo apt-get update
sudo apt-get upgrade -y
@GeroSalas
GeroSalas / elasticsearch-example.js
Created June 2, 2018 12:52 — forked from StephanHoyer/elasticsearch-example.js
Simple example how to use elastic search with node.js
'use strict';
var elasticsearch = require('elasticsearch');
var Promise = require('bluebird');
var log = console.log.bind(console);
var client = new elasticsearch.Client({
host: 'localhost:9200',
log: 'trace'