Solved

rsyncd - can't set "log file" to module

Posted on 2010-09-12
7
489 Views
Last Modified: 2012-05-10
This works on fedora 7 but it's not on centos 5.5.

I've setup an rsync server.  I have "log file" in the global parameters of rsyncd.conf and "log file" in the module section also.  My main log "/var/log/rsync.log" keeps saying "Global parameter log file found in service section!"

I've validated the path to the module log file.  There is nothing there. I even did a touch rsync_pas.log first with the same permissions that the /var/log/rsync.log had but still it doesn't log anything to that file.

The files do backup fine but the logging is in the /var/log/rsync.log instead of where I've specified for that module.

Any help would be greatly appreciated...

rsyncd.conf:

gid = nobody
uid = 0
max connections = 100
timeout = 300
use chroot = true
log file = /var/log/rsync.log

[pas]
        path = /rsyncd_backup/pas
        read only = false
        list = no
        gid = nobody
        uid = 0
        auth users = jason
        secrets file = /etc/rsyncd.secrets
        log file = /rsyncd_backup/logs/rsync_pas.log
0
Comment
Question by:jasonslogan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 16

Expert Comment

by:medvedd
ID: 33656587
I have a suspicion that global settings override settings for modules.
Try to remove "log file = /var/log/rsync.log" from global section and see how it'll go.
If it will not help, you can use some script to filter messages for different modules,
like this:

http://rsync.samba.org/ftp/unpacked/rsync/support/logfilter

0
 
LVL 1

Author Comment

by:jasonslogan
ID: 33656966
I tried that first but then it pushed the logs to the local syslog server.  According to the link above you can use both. You can have authentication logs and so forth but logging the modules can be done individually.
0
 
LVL 12

Expert Comment

by:mccracky
ID: 33664123
Check the versions of rsync.  the CentOS version might be slightly different.  Does "man rsyncd.conf" on the CentOS server say it's a module parameter or only global parameter?
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 6

Expert Comment

by:Joshua_Peters
ID: 33664811
0
 
LVL 6

Accepted Solution

by:
Joshua_Peters earned 500 total points
ID: 33664838
Or 32 bit version if you are using that.

http://packages.sw.be/rsync/rsync-3.0.7-1.el5.rf.i386.rpm
0
 
LVL 1

Author Comment

by:jasonslogan
ID: 33664997
man rsyncd.conf does say you can put "log file" in the module but after updating with Joshua's suggestion it worked fine.  The fedora 7 version 2.6.9 and the centos 5.5 version was 2.6.8.  Now I am running 3.0.7...
0
 
LVL 1

Author Closing Comment

by:jasonslogan
ID: 33665018
This answer was the solution to my problem not just commenting.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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