<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="Osso Notes">
<title></title></head>
<body>
<p>hi,
<br>
<br>if you reference a source from two log statements both will get a copy of the same message. in the 2nd statement you request to send messages to d_local without filtering. that includes your ip too.
<br>
<br>ahh, i see you are using flags(final), that should do the trick if the message is received on the same source (e.g. s_network). are you sure this is the case?
<br>
<br>also, you can start syslog-ng in the foreground, enabling debug messages which should help you to narrow the problem further down.
<br>
<br># syslog-ng -Fedv
<br>
<br>
<br>----- Original message -----
<br>> Hi guys,
<br>>
<br>> Just new, and created the following conf for testing purposes. The
<br>> problem is that i get the logs in both destinations despite the filter.
<br>>
<br>> @version: 3.4
<br>> @include "scl.conf"
<br>>
<br>> options {
<br>>  keep_hostname(yes);
<br>>  normalize_hostnames(yes);
<br>>  threaded(yes);
<br>>  ts_format(iso); # Adds TZ
<br>>  #use_fqdn(yes);
<br>>  use_dns(no);
<br>> };
<br>>
<br>> source s_local {
<br>>  system();
<br>>  internal();
<br>> };
<br>>
<br>> source s_network {
<br>>  udp();
<br>> };
<br>>
<br>> destination d_local {
<br>>  file("/var/log/messages");
<br>> };
<br>>
<br>> destination d_my_mac {
<br>>  file("/var/log/mymac");
<br>> };
<br>>
<br>> filter f_my_mac {
<br>>  netmask(10.24.18.2/255.255.255.255);
<br>> };
<br>>
<br>> log {
<br>>  source(s_network);
<br>>  filter(f_my_mac);
<br>>  destination(d_my_mac);
<br>>  flags(final);
<br>> };
<br>>
<br>> log {
<br>>  source(s_local);
<br>>  # uncomment this line to open port 514 to receive messages
<br>>  source(s_network);
<br>>  #destination(d_central_udp);
<br>>  destination(d_local);
<br>> };
<br>>
<br>>
<br>> as netmask i also tried cidr /24 and same thing. The problem is that i
<br>> get the logs in both destinations. I only want to have them in my_mac
<br>>
<br>> Thanks!
<br><br></p>
</body>
</html>