Posts

Showing posts from February, 2018

Latest Post

Fluentd error: Unable to push logs to [elasticsearch]

After application deployments, Kibana stopped showing logs exactly after 7 days. The error "Fluentd error: Unable to push logs to [elasticsearch]" was shown in the fluentd logs. The initial response was to increase the buffer limits for fluentd as follows: chunk_limit_size 10M queue_limit_length 256 The behavior occurred again after two weeks, which led to the same error. On closer investigation, the error was preceded by the statement "Failed to write to the buffer." This led me to inspect the fluentd configuration again and found the following code in the buffer part which caused the fluentd buffers to be filled as per the official documentation on Fluentd : overflow_action block The fix for this overflow_action is to change from block to drop_oldest_chunk, allowing the fluentd logs to flow seamlessly to the elastic search by dropping the oldest logs in the buffer.   <buffer> @type file path /var/log/fluentd-buffers/kubernet

Reset password in RHEL 7

1. Reboot to GRUB and press 'e' after highlighting the boot-up entry. 2. Scroll to the line starting with 'linux16' and enter the following at the end of the same line:     rd.break console=tty1 3. Press Ctrl + x to boot with options specified in step 2. 4. The bootup will lead to a single prompt command line. 5. Enter the following commands to change the pasword:     mount -o remount,rw /sysroot     chroot /sysroot     passwd -> Enter the password twice.     touch / .autorelabel -> This is to make sure the SELINUX permissions are not disturbed.     exit 6. After step 5, the reboot will be complete and now you will be able to login with your new root password.