Re: Save rsyslog data -

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

 



On 08/20/2012 12:53 AM, Heinz Diehl wrote:
> On 19.08.2012, Bob Goodwin - Zuni, Virginia, USA wrote: 
>
>> Can someone tell me the proper command to save log data to "
>> /home/bobg/xxlog" instead of filling up "var/log/messages" nothing I've
>> tried has worked?
> Here's what works for me:
>
> 1. Go to /etc/sysconfig/rsyslog and add the "-r" option to the
> parameters for rsyslogd (as far as I know, the "-r" option has been
> obsoleted some time ago, and is replaced by 2., so just try or read
> the manpages).
>
> 2. Go to /etc/rsyslogd.conf and let the daemon listen on UDP port 514:
>
> $ModLoad imudp
> $UDPServerRun 514
>
> 3. Go to /etc/rsyslog.d and create an empty file. Write this into it:
>
> :source, isequal, "sunshine" /var/log/tomato.log
> :source, isequal, "sunshine" ~
>
> Replace "sunshine" with your routers name, or use its IP.
>
> 4. Restart rsyslogd:
>
> systemctl restart syslog.service
>
> That's it.
>
And don't forget to open port 514 if you are running a firewall on the rsyslog host.  It is closed by default.

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