<div>Yes here is the portion of my syslog-ng.cong</div>
<div> </div>
<div>#####################################</div>
<div>
<p>options { sync (0);<br> time_reopen (10);<br> log_fifo_size (1000);<br> long_hostnames (yes);<br> use_dns (yes);<br> use_fqdn (yes);<br> create_dirs (no);<br> keep_hostname (no);
<br> };</p>
<p>source sys { unix-stream ("/dev/log"); internal(); };<br>source net { <br> udp(ip(<a href="http://0.0.0.0">0.0.0.0</a>) port(514) );<br> };</p>
<p><br>destination d_mysql {<br> pipe("/tmp/mysql.pipe"<br> template("INSERT INTO logs<br> (host, facility, priority, level, tag, datetime, program, msg)<br> VALUES ( '$HOST', '$FACILITY', '$PRIORITY', '$LEVEL', '$TAG', '$YEAR-$MONTH-$DAY $HOUR:$MIN:$SEC',
<br> '$PROGRAM', '$MSG' );\n") template-escape(yes));<br>};<br>log { source(net); destination(d_mysql);</p></div>
<div>##############################################</div>
<div> </div>
<div> </div>
<div>But if you say that syslog-ng first queries DNS Server ... then why it is resolving names for all public Ips which i defined in /etc/hosts and those public Ips have no entries in my defined DNS Servers.</div>
<div> </div>
<div>i am quite confused how this thing is actually working??</div>
<div> </div>
<div>Regards,</div>
<div> </div>
<div>-Geni</div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div><span class="gmail_quote">On 7/14/05, <b class="gmail_sendername">Ken Garland</b> <<a href="mailto:ken.garland@rotech.com">ken.garland@rotech.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">paste the relevant parts of your .conf file.<br><br>mrgenius wrote:<br><br>><br>> Hi All!<br>><br>
> I am using Syslog-ng with php-syslog-ng. to give names of my choices<br>> to different hosts IP what i did was to define hostnames against each<br>> IP of host in /etc/hosts file.<br>><br>> It was working fine with Public IP adresses.. But I have some hosts on
<br>> local network too with 192.168 IPs . The pRoblem i am now facing is<br>> that its not storing logs with HOSTNAMES of private IPs. Where as its<br>> working fine and giving names of Public IPs.<br>><br>> For example In My /etc/hosts file i have these 2 entries
<br>><br>> <a href="http://202.164.1.1">202.164.1.1</a> <<a href="http://202.164.1.1">http://202.164.1.1</a>> broadband-router<br>> <a href="http://192.168.77.1">192.168.77.1</a> <<a href="http://192.168.77.1">
http://192.168.77.1</a>> primary-router<br>><br>> For 1st entry Logs in database will come with name broadband-router,<br>> which is what i want<br>> For 2nd Entry Logs in database will come with name
<a href="http://192.168.77.1">192.168.77.1</a><br>> <<a href="http://192.168.77.1">http://192.168.77.1</a>>, which is what i Don't want<br>><br>><br>> Any body has any idea?? any thing to do in configuration of syslog-ng??
<br>><br>> Regards,<br>><br>> -Geni<br>><br>>------------------------------------------------------------------------<br>><br>>_______________________________________________<br>>syslog-ng maillist -
<a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a><br>><a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>>Frequently asked questions at
<a href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a><br>><br>><br>><br></blockquote></div><br>