I am getting below error while restarting server .
[root@localhost logs]# /etc/init.d/syslog-ng restart
Stopping syslog-ng: [FAILED]
syslog-ng is stopped
Starting syslog-ng: [2018-05-11T16:41:55.756615] Error binding socket; addr='AF_INET(0.0.0.0:514)', error='Address already in use (98)'
[2018-05-11T16:41:55.756684] Error initializing message pipeline; plugin name='network', location='/etc/syslog-ng/syslog-ng.conf:24:3'
[FAILED]
1. I want to use wildcard to send all apache custom logs from client to server .
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>client conf<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
@version:3.13
@include "scl.conf"
@define allow-config-dups 1
source s_local {
system();
internal();
};
destination d_network {udp("192.168.122.67" port(514));
};
destination d_local {
file("/var/log/messages");
};
log{
source(s_local);
destination(d_network);
destination(d_local);
};
####################
source s_local{
wildcard-file(
base-dir("/usr/local/apache/logs")
filename-pattern("*.log")
recursive(no)
follow-freq(1));
};
destination d_network {tcp("192.168.122.67" port(514));
};
log{
source(s_local);
destination(d_network);
};
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>server conf<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
@version:3.13
@include "scl.conf"
source s_local{system(); internal();};
source s_network{
udp();
tcp();
};
destination d_local{file("/var/log/messages");};
destination d_from_net{file("/var/log/from_net");};
log{
source(s_local);
destination(d_local);
};
log { source(s_network); destination(d_from_net); };
source s_net {
network(flags(no-parse));
};
parser p_apache {
csv-parser(
columns("apache.FILE_NAME", "apache.MESSAGE")
flags(greedy)
);
};
destination d_apache {
file("/usr/local/apache/logs/${apache.FILE_NAME}"
template("${apache.MESSAGE}\n"));
};
log{
source (s_net);
parser (p_apache);
destination(d_apache);
};
What should be changed on configuration file on both side ?