Re: Save rsyslog data -

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/20/2012 11:29 PM, Bob Goodwin - Zuni, Virginia, USA wrote:
>    It doesn't seem to accept double quotes, single still  yields an
>    error message.
>
>        [bobg@box9 ~]$ cat /var/log/tomato.log
>
>        Aug 20 11:02:27 box9 rsyslogd: the last error occured in
>        /etc/rsyslog.d/emptyfile.conf, line 3:":source, isequal,
>        '192.168.1.9' /var/log/tomato.log" 

Well...  All I can say at this point is....

1.  I don't use :source

2.  I log info from my dlink in a file which is not /var/log/messages and that is what I think you are trying to do.

3.  These work just fine for me....

if $msg contains 'from 192.168.0.18' then ~   (discard messages which match)
if $msg contains 'D-Link' then /var/log/dlink.log   (log messages containing D-Link in dlink.log)

or

:msg, contains, "from 192.168.0.1" ~
:msg, contains, "D-Link" /var/log/dlink.log

So....  Maybe you should post a copy of the entries that are filling up your /var/log/messages file?


-- 
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -- Rick Cook, The Wizardry Compiled
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux