Elasticsearch Curator

Why? You can use curator to manipulate elastic search indices. For example shrink or delete old ones. Install After installing elasticsearch in debian based: Maker sure to add source to list (or you may have an old version installed instead): Add to /etc/apt/sources.list.d/:  deb [arch=amd64] https://packages.elastic.co/curator/5/debian stable main Then run: Read more…

MS SQL Server on docker

Run MSSQL Express (for Development) docker run –name mssql \ -e ‘ACCEPT_EULA=Y’ -e ‘SA_PASSWORD=atleast8’ -e ‘MSSQL_PID=Express’ \ -p 1433:1433 -d microsoft/mssql-server-linux:latest Run “client” docker exec -it mssql /opt/mssql-tools/bin/sqlcmd \ -S localhost -U sa’ (*) you will be prompted to enter the password (e.g. “atleast8“) References https://hub.docker.com/r/microsoft/mssql-server-linux/ https://hub.docker.com/r/microsoft/mssql-tools/

ElasticBeanstalk logs to Elasticsearch

Install filebeat on RPM Based: sudo rpm –import https://packages.elastic.co/GPG-KEY-elasticsearch create /etc/yum.repos.d/elastic.repo [elastic-6.x] name=Elastic repository for 6.x packages baseurl=https://artifacts.elastic.co/packages/6.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md sudo yum install filebeat on deb based: wget -qO – https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add – sudo apt-get install apt-transport-https echo “deb https://artifacts.elastic.co/packages/6.x/apt stable main” | sudo tee Read more…

LetsEncrypt on Docker container

Install docker 🙂 Create folder Create a subfolder called “letsencrypt” to store your keys. Run certbot on Docker docker run -v ${pwd}/letsencrypt:/etc/letsencrypt -it certbot/certbot certonly –manual –preferred-challenges dns Important: On MacOS make sure to use ${PWD} instead of ${pwd} Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator manual, Installer None Read more…

Getting started with Ansible

To Install on MacOS Add pip: $ sudo easy_install pip Install ansible: $ sudo pip install ansible Ping (EC2 Instance) sudo mkdir /etc/ansible cd /etc/ansible sudo vi hosts hosts (list of your hosts): ec2-52-15-xxx-yyy.us-east-2.compute.amazonaws.com use ssh-agent? $ ssh-agent bash $ ssh-add ~/aws_key.pem Ping To connect you will need to add Read more…

Kibana – reset

delete filebeat template curl -X DELETE http://localhost:9200/_template/filebeat-6.0.0 delete all indices: curl -X DELETE ‘http://localhost:9200/_all’ delete ingest template curl -X DELETE localhost:9200/_ingest/pipeline/filebeat-* Using the developer console DELETE /_template/filebeat-6.0.0 DELETE /_all DELETE /_ingest/pipeline/filebeat-*

Redis for development

Docker Install docker: https://store.docker.com/search?type=edition&offering=community Run Server docker run –name redis -v /tmp/redis:/data -d redis redis-server –appendonly yes –name {name}: where {name} is the nick name of the container -v {path}:/data: where {path} will be used by redis to persist data Run Client docker run -it –link redis:redis –rm redis redis-cli Read more…

RabbitMq in Docker Container

Make sure you have docker CE installed and running, then start container: docker run -p 15672:15672 -p 5672:5672 –name rabbitmq rabbitmq:management -p {localhost port}:{container port}: exposes container port on localhost port –name {name}: assign name to container Check the Management web site by opening the web browser and navigating to: http://localhost:15672 Read more…