• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

logging

How to enable logging of haproxy in rsyslog

October 16, 2013 by Sharad Chhetri 11 Comments

After installing the HAproxy 1.4 in CentOS 6.4 bydefault logging of haproxy was not enable.To enable the logging of HAProxy you have to enable it in rsyslog(In CentOS 6.4 minimal installation,rsyslog version 5.2 is shipped). To setup logging in HAproxy,follow the given below steps Step 1: In Global Section of haproxy.cfg put the value log […]

Filed Under: Linux Tagged With: haproxy, loadbalancer, logging, rsyslog

Keep logs of user after sudo su – : Secondary Logging

December 2, 2011 by Sharad Chhetri 15 Comments

When we do sudo su – or su – and user become root we mostly found that in log it is not easy to track which command is used by which user. In this post, we will setup the secondary logging to Keep logs of root user after sudo access. You can also setup the […]

Filed Under: Linux, Tips And Tricks Tagged With: logging

Saving every command and its output in log in Unix

November 25, 2011 by Sharad Chhetri Leave a Comment

In this post we will learn about saving every linux/unix command and its output in log file. The command called script will be use to save the command output in log. Run script command to save command output in file/log script  filename.log Example: [root@server1 ~]# [root@server1 ~]# script my.log Script started, file is my.log Welcome […]

Filed Under: Linux Tagged With: logging

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

How to create a file with cat command

How to zip the directory in linux with command line

Replace keyword with its filename without extension : bash script

How to encode and decode the strings with base64

SSH WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

How to configure ethernet in CentOS 6 after installing in Virtual Box

Run the script using nohup without hitting enter key two times

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ·
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy