LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to enable logging of third party softwares or tools using syslogs/rsyslogs. (https://www.linuxquestions.org/questions/linux-software-2/how-to-enable-logging-of-third-party-softwares-or-tools-using-syslogs-rsyslogs-827648/)

Raheel Hassan 08-21-2010 10:53 AM

How to enable logging of third party softwares or tools using syslogs/rsyslogs.
 
Hi,

I am searching that how i can configure syslogs/rsyslog to receive third party tools or softwares logs. For example i have a program that generates logs like when it is started and logs about its services, alerts if there are any alarms etc. I want to forward these logs using syslogs/rsyslog. Is their any possibility how can i achieve that. I will be very grateful for any help.


Regards,
Raheel.

unSpawn 08-22-2010 04:03 AM

Asserting (not much information given) your application logs to a file (and can't be taught or modified to log to syslog directly) and that using a syslog pipe (examples: http://wiki.rsyslog.com/index.php/Wo..._configuration) is not what you're after, as far as I'm aware rsyslog does not support reading from arbitrary source files but syslog-ng does.

Raheel Hassan 08-22-2010 12:02 PM

Thanks for your reply. In apache ErrorLog Directive provides this feature, but in my case i do not have any directive. I have also observed in Mandriva that they have also added the support of drakxtool using local1. I just want to add the similar support to my software logs so that i can transport my logs using syslog. If this is not possible then do you have any idea that how i can forward my software logs to another system.

Regards,
Raheel

unSpawn 08-23-2010 11:12 AM

Quote:

Originally Posted by unSpawn (Post 4073896)
as far as I'm aware rsyslog does not support reading from arbitrary source files

It seems Rsyslog does, see: http://www.rsyslog.com/doc/imfile.html

Raheel Hassan 08-25-2010 04:18 AM

Thank you very much. I think this will resolve my problem


All times are GMT -5. The time now is 08:35 PM.