<DIV>Hi,</DIV>  <DIV>&nbsp;</DIV>  <DIV>Thanks for the help. It works now.</DIV>  <DIV>&nbsp;</DIV>  <DIV>My Observation&nbsp;are&nbsp;for HP-UX&nbsp;: </DIV>  <DIV>1. If both syslog and syslog-ng&nbsp; daemons are running on the system, then message sent through logger&nbsp; are being captured by syslog daemon only.</DIV>  <DIV>2. While in other OS like, AIX, Linux, Solaris message goes to both the file defined in&nbsp; syslog.conf and syslog-ng.conf.</DIV>  <DIV>3. So&nbsp; to captured all message on HP-UX to syslog-ng, I need to stop HP-UX's syslog daemon?</DIV>  <DIV>&nbsp;</DIV>  <DIV>&nbsp;</DIV>  <DIV>Please any further comment on my Observation. Am I correct?</DIV>  <DIV>&nbsp;</DIV>  <DIV>Thanks and Regards</DIV>  <DIV>Shamimuddin</DIV>  <DIV>CSC India</DIV>  <DIV>&nbsp;</DIV>  <DIV>&nbsp;</DIV>  <DIV>&nbsp;</DIV>  <DIV>&nbsp;</DIV>  <DIV>&nbsp;</DIV>  <DIV>&nbsp;</DIV>  <DIV><BR><B><I>olivier rolland &lt;madmax2010fr@yahoo.fr&gt;</I></B> wrote:</DIV>  <BLOCKQUOTE
 class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi<BR><BR>You can use logger on HP-UX using priority and Tag option<BR>For exemple logger -p local4.info -t WHATIHAVETOCATCH "My message "<BR>and you create a match filter like<BR>filter f_what {match (WHATIHAVETOCATCH);};<BR>filter f_infolocal { level(info) and facility(local4);};<BR><BR>destination d_what { file(/place/fileyouwant.log);};<BR><BR>log { source(s_sys) ; filter(f_what); filter(infolocal) ; <BR>destination(d_what);};<BR><BR>Now you catch your regexp and you log messages into the file that you want.<BR><BR>Shamim a écrit :<BR>&gt; Hi<BR>&gt; <BR>&gt; Please can anyone help me how to log message to syslog-ng manually.<BR>&gt; e.g. in Linux I can log message as # logger "test message" <BR>&gt; <RETURN>; and it goes to file defined in <BR>&gt; syslog-ng.conf(/var/adm/messages),<BR>&gt; <BR>&gt; However in case of HP-UX it is not working as describe above for <BR>&gt; Linux.
 Is there any other method to log message manually in HP-UX?<BR>&gt; Or messages are dropping?<BR>&gt; <BR>&gt; Please suggest.<BR>&gt; <BR>&gt; Thanks<BR>&gt; Shamimuddin<BR>&gt; CSC Noida<BR>&gt;<BR>&gt; */olivier rolland <MADMAX2010FR@YAHOO.FR>/* wrote:<BR>&gt;<BR>&gt; You have to put the log device with the pad_size into your system<BR>&gt; source.<BR>&gt; source s_sys {pipe("/dev/log" pad_size(2048));<BR>&gt; internal(); };<BR>&gt; It's working on my system so you can try.<BR>&gt; You can also add the klog device (/dev/klog) with same options than<BR>&gt; /dev/log.<BR>&gt;<BR>&gt; Shamim a écrit :<BR>&gt; &gt;<BR>&gt; &gt; Hi,<BR>&gt; &gt; I've compile syslog-ng-2.0.2 on HP-UX-11.11, however messages<BR>&gt; are not<BR>&gt; &gt; going to desired destinations as defined in the syslog-ng.conf .<BR>&gt; &gt;<BR>&gt; &gt; my syslog-ng.conf<BR>&gt; &gt; ---------------------------------------------<BR>&gt; &gt; # syslog-ng configuration file.<BR>&gt; &gt; #<BR>&gt; &gt; #
 This should behave pretty much like the original syslog on<BR>&gt; HP-UX. But<BR>&gt; &gt; # it could be configured a lot smarter.<BR>&gt; &gt; #<BR>&gt; &gt; # See syslog-ng(8) and syslog-ng.conf(8) for more information.<BR>&gt; &gt; #<BR>&gt; &gt; # 20000925 gb@sysfive.com<BR>&gt; &gt; options { sync (0);<BR>&gt; &gt; time_reopen (10);<BR>&gt; &gt; log_fifo_size (1000);<BR>&gt; &gt; long_hostnames (off);<BR>&gt; &gt; use_dns (no);<BR>&gt; &gt; use_fqdn (no);<BR>&gt; &gt; create_dirs (no);<BR>&gt; &gt; keep_hostname (yes);<BR>&gt; &gt; };<BR>&gt; &gt; source s_sys {internal();pipe("/dev/log"); };<BR>&gt; &gt; destination d_cons { file("/dev/console1"); };<BR>&gt; &gt; destination d_mesg { file("/var/adm/syslog/syslog-ng.log"); };<BR>&gt; &gt; destination d_mail { file("/var/adm/syslog/mail-ng.log"); };<BR>&gt; &gt; destination d_mlrt { usertty("root"); };<BR>&gt; &gt; destination d_mlal { usertty("*"); };<BR>&gt; &gt; filter f_filter1 { facility(mail) and level(debug);
 };<BR>&gt; &gt; filter f_filter2 { (facility(mail) and level(debug)) or<BR>&gt; &gt; level(info); };<BR>&gt; &gt; filter f_filter3 { level(alert); };<BR>&gt; &gt; filter f_filter4 { level(emerg); };<BR>&gt; &gt; log { source(s_sys); destination(d_mail); };<BR>&gt; &gt; log { source(s_sys); destination(d_mesg); };<BR>&gt; &gt; log { source(s_sys); destination(d_cons);destination(d_mlrt); };<BR>&gt; &gt; log { source(s_sys); destination(d_mlal); };<BR>&gt; &gt; #<BR>&gt; &gt; --------------------------------------------<BR>&gt; &gt; Now If I generate message using "logger" utility on system, message<BR>&gt; &gt; should go to "/var/adm/syslog/syslog-ng.log", though they are<BR>&gt; not going...<BR>&gt; &gt; Is there anything wrong with .conf file?<BR>&gt; &gt;<BR>&gt; &gt; What should be the conf file for central server and client on HP-UX?<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; syslog-ng daemon is running like:<BR>&gt; &gt;<BR>&gt;
 -------------------------------------------------------------------------------<BR>&gt; &gt; syslog-ng service starting.<BR>&gt; &gt; # ps -eaf |grep syslog-ng<BR>&gt; &gt; root 14437 1 0 10:22:30 ? 0:00<BR>&gt; &gt; /opt/soe/local/syslog-ng-2.0.2/sbin/syslog-ng -f /opt/soe/local<BR>&gt; &gt; #<BR>&gt; &gt;<BR>&gt; ------------------------------------------------------------------------------<BR>&gt; &gt;<BR>&gt; &gt; Thanks<BR>&gt; &gt; Shamim<BR></BLOCKQUOTE><p>&#32;
                <hr size=1> 
What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the <a href="http://uk.rd.yahoo.com/mail/uk/taglines/default/championships/quiz/*http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk/">Yahoo! Mail Championship</a>.