On Mon, Mar 4, 2013 at 2:40 PM, Rainer Gerhards
<[email protected]> wrote:
> On Mon, 2013-03-04 at 14:22 +0000, C. L. Martinez wrote:
>> On Thu, Feb 28, 2013 at 7:31 AM, C. L. Martinez <[email protected]> wrote:
>> > Hi all,
>> >
>> >  I am changing my rsyslog v5 forward instances by v7 and I would like
>> > to use new v7 syntax. For example, this is a rsyslog.conf v5 yntax:
>> >
>> > #rsyslog v5 config file
>> >
>> > # Increasing Message size
>> > $MaxMessageSize 64k
>> >
>> > #### MODULES ####
>> >
>> > $ModLoad imfile         # provides support for plain text files
>> > $InputFilePollInterval 1
>> >
>> >
>> > #### GLOBAL DIRECTIVES ####
>> >
>> > # Use default timestamp format
>> > $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
>> >
>> > # File syncing capability is disabled by default. This feature is
>> > usually not required,
>> > # not useful and an extreme performance hit
>> > #$ActionFileEnableSync on
>> >
>> >
>> > #### Templates definitions ####
>> >
>> > #### RULES ####
>> >
>> > # Default spool directory
>> > $WorkDirectory /var/spool/rsyslog
>> > $MainMsgQueueFileName mainq
>> > $MainMsgQueueType LinkedList
>> > $MainMsgQueueSaveOnShutDown on
>> > $MainMsgQueueMaxDiskSpace 1g
>> >
>> > # Define first log file
>> > $InputFileName /tmp/test.log
>> > $InputFileTag test:
>> > $InputFileStateFile test-state
>> > $InputFileSeverity info
>> > $InputRunFileMonitor
>> > $ActionQueueFileName testfwd
>> > $ActionQueueMaxDiskSpace 10g
>> > $ActionQueueSaveOnShutdown on
>> > $ActionQueueType LinkedList
>> > $ActionQueueMaxFileSize 20m
>> > $ActionResumeRetryCount -1
>> > if $programname == 'test' then @@1.1.1.1:514
>> > & ~
>> >
>> > Changing to v7 syntax:
>> >
>> > #rsyslog v7 config file
>> >
>> > ### Global configuration ###
>> > global(EmitStartupMessages="off")
>> >
>> > #### Modules ####
>> > module(type="omfile" 
>> > ActionFileDefaultTemplate="RSYSLOG_TraditionalFileFormat")
>> > module(load="imfile" pollingInterval="1")
>> >
>> >
>> > #### Rules ####
>> >
>> > # First file log defined
>> > input(type="imfile" file="/tmp/test.log" tag="test:"
>> > statefile="/var/spool/rsyslog/test-state" severity="info")
>> > if $programname == 'test' then {
>> >         action(type="omfwd" protocol="tcp" target="1.1.1.1" port="514"
>> >                 rsyslog.workDirectory="/var/spool/rsyslog"
>> >                 queue.filename="testfwd"
>> >                 queue.maxdiskspace="10g"
>> >                 queue.saveonshutdown="on"
>> >                 queue.type="LinkedList"
>> >                 queue.maxfilesize="20m"
>> >                 action.RetryCount="-1")
>> > }
>> >
>> > Is correct?? Any error??
>>
>> Well, it seems it doesnt works ... Somebody knows why??
>
> What exactly does not work? Which errors are emitted? If in doubt, do
>
> http://www.rsyslog.com/how-can-i-check-the-config/
>

No logs are forwarded to central syslog server ... Using rsyslog.conf
v5 with rsyslog v7 works without problems ... Checking config only
returns me error about using "action.RetryCount". I have changed to
"action.resumeretrycount" and no errors returned ... but logs are not
forwarded ...
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to