LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2017, 02:23 PM   #1
lsmith1664
LQ Newbie
 
Registered: Jul 2017
Posts: 1

Rep: Reputation: Disabled
RSYSLOG>CONF help


Hi All,

I have my rsyslog set to authpriv.*, and I can see in my etc/ssh/secure I have log messages, but they are not being written to my syslog server. I am wondering if someone can point out the obivious I am missing. Thanks.


# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
# If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html

#### MODULES ####

$ModLoad imuxsock # provides support for local system logging (e.g. via logger c ommand)
$ModLoad imklog # provides kernel logging support (previously done by rklogd)
#$ModLoad immark # provides --MARK-- message capability

# Provides UDP syslog reception
#$ModLoad imudp
#$UDPServerRun 514

# Provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514


#### GLOBAL DIRECTIVES ####

rsyslog.conf 
# Use default timestamp format
:
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
:

:
# File syncing capability is disabled by default. This feature is usually not re :
quired,
:
# not useful and an extreme performance hit
:
#$ActionFileEnableSync on
:

:
# Include all config files in /etc/rsyslog.d/
:
$IncludeConfig /etc/rsyslog.d/*.conf
:

:

:
#### RULES ####
:

:
# 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
:

:

:
# ### begin forwarding rule ###
:
# The statement between the begin ... end define a SINGLE forwarding
:
# rule. They belong together, do NOT split them. If you create multiple
:
# forwarding rules, duplicate the whole block!
:
# Remote Logging (we use TCP for reliable delivery)
:
#
:
# An on-disk queue is created for this action. If the remote host is
:
# down, messages are spooled to disk and sent when it is up again.
:
#$WorkDirectory /var/lib/rsyslog # where to place spool files
:
#$ActionQueueFileName fwdRule1 # unique name prefix for spool files
:
#$ActionQueueMaxDiskSpace 1g # 1gb space limit (use as much as possible)
:
#$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
:
#$ActionQueueType LinkedList # run asynchronously
:
#$ActionResumeRetryCount -1 # infinite retries if host is down
:
# remote host is: name/iport, e.g. 192.168.0.1:514, port optional
:
#*.* @@remote-host:514
:
*.* @@192.168.20.12:514
:
# ### end of the forwarding rule ###
 
Old 07-12-2017, 10:41 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
What is that long thing you posted? Is it a file? What kind of system do you have?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is there any difference between / etc/rsyslog.conf and /etc/rsyslogd.conf sigint-ninja Linux - Newbie 3 10-22-2016 03:19 PM
Rsyslog.conf To Monitor Log File and Send to Remote Server immolation Linux - Server 1 12-07-2015 02:10 PM
[SOLVED] authorization logging rsyslog.conf in Fedora 20 FooIsFood Linux - Newbie 3 03-20-2014 02:19 PM
SELinux blocks my changes in rsyslog.conf tbergfeld Linux - Newbie 1 06-17-2008 03:39 AM
SELinux blocks my changes in rsyslog.conf tbergfeld Linux - Security 1 06-17-2008 03:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration