- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- send logfiles to a remote host
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2009 03:04 PM
10-28-2009 03:04 PM
OS: 11.31
i am configuring the syslogd to send log to a log server. It is working fine, but i want to direct the logging in the remote server to a different DIR not /var/adm/syslog/syslog.log
i have 2 client servers : TEST1 TEST1
i would like to configure so server TEST1 will send log to /var/adm/syslog/TEST1 and server TEST2 will send log to /var/adm/syslog/TEST2
from each client
in the file /etc/syslog.conf i have this line
but it is still logging to the default location.
*.info;mail.none /var/adm/syslog/itauxdev.log @sunusdev
and i also reverted like this
*.info;mail.none @sunusdev /var/adm/syslog/itauxdev.log
then restarted the daemon
#kill -HUP ID
but it is still log to the default location
please kindly assist.
Thanks,
Tom
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2009 04:12 PM
10-28-2009 04:12 PM
Re: send logfiles to a remote host
Example:-
*.info;mail.none /var/adm/syslog/syslog.log
*.info;mail.none @hostname (or IP#)
and stop and start the syslog.
# /sbin/init.d/syslogd stop
# /sbin/init.d/syslogd start
Alternative Choice :-
scp -p /var/adm/syslog/syslog.log logserver:/logs/hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2009 05:13 PM
10-28-2009 05:13 PM
Re: send logfiles to a remote host
Thanks,
(make sure use TAB via editing /adding the lines in syslog confile )
Example:-
*.info;mail.none /var/adm/syslog/syslog.log
*.info;mail.none @hostname (or IP#)
and stop and start the syslog.
# /sbin/init.d/syslogd stop
# /sbin/init.d/syslogd start
---i got this done, what i would like to do is the client still loges to it LOCAL DEFAULT LOCATION, BUT WHEN SENDING LOG TO THE REMOTE HOST S/B IN DIFFERENT LOCATION. RIGHT NOW IT SEND FILE TO REMOTE HOST IN DEFAULT LOCATION /var/adm/syslog/syslog.log
even i have a line likes this
*.info;mail.none /var/adm/syslog/syslog.log
*.info;mail.none @hostname /var/adm/syslog/test.log
Please advise.
Thanks,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2009 05:41 PM
10-28-2009 05:41 PM
SolutionThis line determines where the logfile is located.
> *.info;mail.none @hostname /var/adm/syslog/test.log
There is no option to tell the remote syslog server where to store files. syslogd uses the standard syslog communication port to send messages. It is the destination system that determines where to store the logs. Just like the local system, the remote system follows the rules in the remote syslog.conf. There is no way to separate messages by the sending host. syslog can only separate messages by priority and facility.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2009 07:35 PM
10-28-2009 07:35 PM
Re: send logfiles to a remote host
You need to have "Centralized Log Server" Some kind of application which capture information via port communication for your requirements.
mentioned to you earlier,
scp "would work fine for you requirements" bit effective only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2009 09:15 PM
10-28-2009 09:15 PM
Re: send logfiles to a remote host
Best regards,
Tom