Skip to content

Commit

Permalink
increase number of connections for syslog
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Nov 5, 2021
1 parent bb07529 commit 297a0f4
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 0 deletions.
38 changes: 38 additions & 0 deletions tests/data/ap-waf/syslog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ spec:
ports:
- containerPort: 514
- containerPort: 601
volumeMounts:
- name: config-volume
mountPath: /etc/syslog-ng/syslog-ng.conf
subPath: syslog-ng.conf
volumes:
- name: config-volume
configMap:
name: syslog-config
---
apiVersion: v1
kind: Service
Expand All @@ -30,3 +38,33 @@ spec:
protocol: TCP
selector:
app: syslog
---
apiVersion: v1
kind: ConfigMap
metadata:
name: syslog-config
data:
syslog-ng.conf: |-
@version: 3.29
@include "scl.conf"
source s_local {
internal();
};
source s_network {
default-network-drivers(
max_connections(300)
);
};
destination d_local {
file("/var/log/messages");
file("/var/log/messages-kv.log" template("$ISODATE $HOST $(format-welf --scope all-nv-pairs)\n") frac-digits(3));
};
log {
source(s_local);
source(s_network);
destination(d_local);
};
38 changes: 38 additions & 0 deletions tests/data/appprotect/syslog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ spec:
ports:
- containerPort: 514
- containerPort: 601
volumeMounts:
- name: config-volume
mountPath: /etc/syslog-ng/syslog-ng.conf
subPath: syslog-ng.conf
volumes:
- name: config-volume
configMap:
name: syslog-config
---
apiVersion: v1
kind: Service
Expand All @@ -30,3 +38,33 @@ spec:
protocol: UDP
selector:
app: syslog
---
apiVersion: v1
kind: ConfigMap
metadata:
name: syslog-config
data:
syslog-ng.conf: |-
@version: 3.29
@include "scl.conf"
source s_local {
internal();
};
source s_network {
default-network-drivers(
max_connections(300)
);
};
destination d_local {
file("/var/log/messages");
file("/var/log/messages-kv.log" template("$ISODATE $HOST $(format-welf --scope all-nv-pairs)\n") frac-digits(3));
};
log {
source(s_local);
source(s_network);
destination(d_local);
};
38 changes: 38 additions & 0 deletions tests/data/appprotect/syslog2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ spec:
ports:
- containerPort: 514
- containerPort: 601
volumeMounts:
- name: config-volume
mountPath: /etc/syslog-ng/syslog-ng.conf
subPath: syslog-ng.conf
volumes:
- name: config-volume
configMap:
name: syslog2-config
---
apiVersion: v1
kind: Service
Expand All @@ -30,3 +38,33 @@ spec:
protocol: UDP
selector:
app: syslog2
---
apiVersion: v1
kind: ConfigMap
metadata:
name: syslog2-config
data:
syslog-ng.conf: |-
@version: 3.29
@include "scl.conf"
source s_local {
internal();
};
source s_network {
default-network-drivers(
max_connections(300)
);
};
destination d_local {
file("/var/log/messages");
file("/var/log/messages-kv.log" template("$ISODATE $HOST $(format-welf --scope all-nv-pairs)\n") frac-digits(3));
};
log {
source(s_local);
source(s_network);
destination(d_local);
};

0 comments on commit 297a0f4

Please sign in to comment.