<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
well - if you look in the documentation, I think you would see it -
but "HOST_FROM" is IP address, "HOST" is name if it resolves and
address otherwise.<br>
<br>
Not sure about your other question.<br>
<br>
Jim<br>
<br>
<div class="moz-cite-prefix">On 06/05/2014 09:06 PM, Justin B wrote:<br>
</div>
<blockquote
cite="mid:CACLzEeJOv+t3EK-ULsVOkPHKQp_0swtBGbX6sZx+wU0LaCkC3Q@mail.gmail.com"
type="cite">
<div>destination r_dest {<br>
file("/u01//$HOST_FROM/messages.$YEAR.$MONTH.$DAY.$HOUR"<br>
owner(root) group(test) perm(0640)<br>
template("|${S_FULLDATE}|${ETYPE}|${EHOSTNAME}|${ESOURCE}|${EOUTCOME}|${EMSG}|${EUSERID}\n")<br>
); };<br>
</div>
<div> </div>
<div>Here you go..</div>
<div> </div>
<div>Also how to control the java stack trace exception that I
receive in EMSG COLUMN in the above.<br>
<br>
</div>
<div class="gmail_quote">On Thu, Jun 5, 2014 at 8:53 PM, Jim
Hendrick <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jrhendri@roadrunner.com" target="_blank">jrhendri@roadrunner.com</a>></span>
wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px
0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div text="#000000" bgcolor="#FFFFFF">we would need to see the
destination definition to assist<br>
<br>
Jim
<div>
<div class="h5"><br>
<br>
<br>
<div>On 06/05/2014 01:59 PM, Justin B wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div><br clear="all">
Hi</div>
<div> </div>
<div>When I receive the application messaged from a
different server to my syslog-ng server it is trying
to create the messages under the directory name with
IP address instead of the Application Server
Hostname.</div>
<div>What can be done baout this??</div>
<div> </div>
<div>i used the following options in syslog-ng.conf</div>
<div> </div>
<div>options {<br>
use_fqdn(no);<br>
flush_lines(0);<br>
keep_hostname(yes);<br>
check_hostname(yes);<br>
chain_hostnames(yes);<br>
create_dirs(yes);<br>
dir_owner(root);<br>
dir_group(test);<br>
dir_perm(0750);<br>
#use_dns(persist_only);<br>
use_dns(yes);<br>
#dns_cache_hosts(/etc/hosts);<br>
dns_cache(yes);<br>
dns_cache_expire(87600);<br>
ts_format(iso);<br>
# keep_timestamp(no);<br>
};<br>
<br>
-- </div>
<div> </div>
<div>Appreciate your quick help..</div>
<div> </div>
<div> </div>
<div><br>
Kaladhar </div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>______________________________________________________________________________
Member info: <a moz-do-not-send="true" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a moz-do-not-send="true" href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a moz-do-not-send="true" href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a>
</pre>
</blockquote>
<br>
</div>
<br>
______________________________________________________________________________<br>
Member info: <a moz-do-not-send="true"
href="https://lists.balabit.hu/mailman/listinfo/syslog-ng"
target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a moz-do-not-send="true"
href="http://www.balabit.com/support/documentation/?product=syslog-ng"
target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a moz-do-not-send="true"
href="http://www.balabit.com/wiki/syslog-ng-faq"
target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Kaladhar <br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a>
</pre>
</blockquote>
<br>
</body>
</html>