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 Read more…

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 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 $ 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-*