Solved

Logging Linux to a central syslog server

Posted on 2009-06-29
2
564 Views
Last Modified: 2013-12-06
I am trying to setup my linux server to send syslog messages to a centrol syslog server. I have added the central server to the syslog.conf, however, I am only receiving cron messages. I thought I have set this up correctly so that it sent all messages of level info or higher. Can someone look at my config below and tell me why for instance, I am not getting notices of when users connect via SSH, log in etc. I thought I would recieve them with this setup? Basically, I want everything logged and sent to this central server.



# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.*                                                 /dev/console

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none                /var/log/messages

# The authpriv file has restricted access.
authpriv.*                                              /var/log/secure

# Log all the mail messages in one place.
mail.*                                                  -/var/log/maillog


# Log cron stuff
cron.*                                                  /var/log/cron

# Everybody gets emergency messages
*.emerg                                                 *

# Save news errors of level crit and higher in a special file.
uucp,news.crit                                          /var/log/spooler

# Save boot messages also to boot.log
local7.*

/var/log/boot.log

*.* @192.168.40.222


0
Comment
Question by:ainselyb
2 Comments
 
LVL 1

Accepted Solution

by:
dontdig earned 250 total points
ID: 24752423
Hi
try this out

user.*      @192.168.1.1

and also see man page of "logger" command here u can get all details about facility and priorities
0
 
LVL 1

Assisted Solution

by:krishna_babu5
krishna_babu5 earned 250 total points
ID: 24770025
As you are trying to log all messages to a central server (192.168.40.222) please comment all lines in your syslog.conf except "*.* @192.168.40.222" and restart the syslog daemon "service syslog restart".
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Two of my three WiFi Routers lose connection 6 65
Ubuntu 14.04.3 Cannot login via GUI, returns to GUI login prompt 26 113
liboauth-php x oauth-1.2.3 3 68
CCNA WiFi Question 2 37
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question