Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
| 79.172.141.87 - - [01/Feb/2022:06:40:58 +0000] "GET /wp-content HTTP/1.0" 200 5000 "https://thomas.com/search.jsp" "Mozilla/5.0 (iPad; CPU iPad OS 9_3_5 like Mac OS X) AppleWebKit/534.0 (KHTML, like Gecko) FxiOS/11.6r9285.0 Mobile/26R322 Safari/534.0" | |
| 17.67.206.39 - - [01/Feb/2022:06:41:28 +0000] "PUT /posts/posts/explore HTTP/1.0" 200 4966 "http://www.burns.net/" "Mozilla/5.0 (Windows NT 5.2; tt-RU; rv:1.9.1.20) Gecko/2015-05-23 16:51:49 Firefox/3.8" | |
| 180.54.101.99 - - [01/Feb/2022:06:42:31 +0000] "PUT /wp-content HTTP/1.0" 404 4943 "http://www.butler.org/posts/blog/register/" "Mozilla/5.0 (iPod; U; CPU iPhone OS 4_1 like Mac OS X; ckb-IQ) AppleWebKit/534.20.3 (KHTML, like Gecko) Version/4.0.5 Mobile/8B112 Safari/6534.20.3" | |
| 83.199.84.57 - - [01/Feb/2022:06:43:45 +0000] "GET /posts/posts/explore HTTP/1.0" 200 4973 "https://www.forbes.net/" "Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_6 like Mac OS X) AppleWebKit/531.2 (KHTML, like Gecko) CriOS/35.0.892.0 Mobile/71N101 Safari/531.2" | |
| 38.247.149.128 - - [01/Feb/2022:0 |
| # Visualized https://link.calyptia.com/5ht | |
| [SERVICE] | |
| flush 1 | |
| log_level info | |
| parsers_file parsers.conf | |
| streams_file streams-2.conf | |
| [INPUT] | |
| name tail | |
| path /var/log/apache/*.log |
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
| #!/bin/bash | |
| wget https://github.com/Microsoft/OMS-Agent-for-Linux/releases/download/OMSAgent_GA_v1.2.0-25/omsagent-1.2.0-25.universal.x64.sh -O /tmp/omsagent.x64.sh | |
| sudo sh /tmp/omsagent.x64.sh --purge |
| #!/bin/bash | |
| # Get the OMS Agent for Linux | |
| wget https://github.com/Microsoft/OMS-Agent-for-Linux/releases/download/OMSAgent_GA_v1.2.0-25/omsagent-1.2.0-25.universal.x64.sh -O /tmp/omsagent-1.2.0-25.universal.x64.sh | |
| # Install and onboard the OMS Agent for Linux | |
| sh /tmp/omsagent-1.2.0-25.universal.x64.sh --upgrade -w $1 -s $2 | |
| # Get clean configuration | |
| cp /etc/opt/microsoft/omsagent/sysconf/omsagent.conf /etc/opt/microsoft/omsagent/conf/omsagent.conf |
| #!/bin/bash | |
| wget https://github.com/Microsoft/OMS-Agent-for-Linux/releases/download/v1.1.0-239/omsagent-1.1.0-239.universal.x64.sh -O /tmp/omsagent.sh | |
| sh /tmp/omsagent.sh --upgrade -w $1 -s $2 | |
| cp /etc/opt/microsoft/omsagent/sysconf/omsagent.conf /etc/opt/microsoft/omsagent/conf/omsagent.conf | |
| wget -O /etc/opt/microsoft/omsagent/conf/omsagent.d/hbase.conf http://ashishdata.blob.core.windows.net/oms/hbase.conf | |
| sudo service omsagent restart |