Ingest Kafka messages into EFK stack
In the article we will see how can we take deep dive into messages going on a Kafka bus. For eg if you have a large enterprise grade solution, and want to capture a copy of messages going to and fro within systems without any additional development. To achieve this, we will use fluentd to […]
Python based CLI automated test for Linux and network
On big networks or data centres where you have run variety of command line tests in minutes, then this solution can help you. Here is the json config. Python code: Sample test cases: Test Results: Trace logs:
Enable web proxy on grafana for datasources, MS Teams notifications etc
On RHEL and Centos, append proxy to following file Restart grafana Now you should able to use this proxy for data sources and notifications.
Expand disk space of a Linux disk partition on LVM
Shutdown Linux VM and increase disk volume from VM “edit settings” option Check disk volume map using fdisk Add assigned space to the disk volume map Resize volume to make it effective Verify updated space
Secure home network with raspberry pi based VPN gateway
First walk through https://www.mka.in/wp/create-own-wifi-router-using-raspberry-pi-4/ to configure raspberry pi as wireless router. To build VPN gateway, I have used openvpn software and VPN services from https://www.cactusvpn.com, as it offered free 3 day trial without saving payment options. After making openvpn functional as gateway for entire home, I can change to other VPN providers or can extend […]
Create own WiFi router using raspberry pi 4
To get better control of internet at home, I have build own wifi router. This article covers, how you can convert your raspberry pi 3 or 4 boxes into a wifi router. I have used raspbian OS lite 64 bit based on Debian bullseye. You will need following software to build router hostapd turns on […]
Raspbian distro upgrade
My Raspberry pi boards are running on “buster” and now since “bullseye” is out, I thought to update them. While doing this, I thought to capture steps to help others. Here are the steps. First update repositories Now run full upgrade command Update raspberry pi firmware Next edit source.list at /etc/apt/sources.list to change distro from […]
Grafana behind apache proxy
It is always a good idea to expose Grafana like web apps on network via a standard web proxy. In this write up, I will mention required configuration updates in grafana and apache to achieve this. Grafana installation by default listens of all network interface IPs on port 3000/tcp. First let us restrict it on […]
Receive and process logs using Fluentd and Python
In normal use cases, we just have to receive logs from multiple hosts or devices, or have to forward logs from one syslog collector to another to further store them in filesystem or elastic like databases. In this case, I will discuss a scenario, where the ask is to filter logs by looking at the […]
RSA PKI based encryption and decryption in python
Generate RSA key pair in pem format Remember above pem file contains private and public key. Keep it secure with yourself. Extract public key out of pem file Now you have private key embedded in private.pem file along with public key. And a copy of public key is available in public.pem file. You can share […]