Re: Save rsyslog data -

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

 



On 19/08/12 17:11, Heinz Diehl types:
On 19.08.2012, Bob Goodwin - Zuni, Virginia, USA wrote:

    [bobg@box9 rsyslog.d]$ cat emptyfile
    #     /etc/rsyslog.d/emptyfile

    :source, isequal, 192.168.1.9 /var/log/tomato.log
    :source, isequal, 192.168.1.9 ~

    Actually I even tried naming it emptyfile.conf out of desperation.
My bad, a big sorry! This file MUST have a .conf ending, otherwise it
will be ignored. Look into /etc/rsyslog.conf why; it contains these
lines:

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

So after rsyslog.conf, rsyslogd is sourcing all files which ends on
.conf in /etc/rsyslog.d.

    Nothing is ever easy!
This is strange. I'm running Tomato 1.28 on a WRT-54GL
(Linksys/Cisco), and it logs perfectly into the file I defined in
the config, using the modifications from my mail.

Just to be absolutely shure: did you configure the logging options in
Tomato correctly?

Hmm, strange... could you try this:
look in your Tomato setup in "Basic -> Identification" and see if
there is a router name defined. Replace the IP with this name in the file in
/etc/rsyslog.d and restart the service. Does it work now?



This is what I see there. Host name would be box9, 192.168.1.9, or localhost. I tried all three.

   Router Identification

   Router Name    tomato
   Hostname       localhost
   Domain Name

 and I changed to:

   /etc/rsyslog.d/emptyfile

   :source, isequal, tomato /var/log/tomato.log
   :source, isequal, tomato ~

Still zero data in /var/log/tomato.log

[root@box9 rsyslog.d]# ll /var/log/tomato.log
-rw-rw-r--. 1 root root 0 Aug 19 13:45 /var/log/tomato.log

--
http://www.qrz.com/db/W2BOD

box9

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