Skip to content

Commit

Permalink
update to single mount point
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Bonsack committed Oct 6, 2019
1 parent d7f0161 commit 928350b
Show file tree
Hide file tree
Showing 20 changed files with 14 additions and 191 deletions.
4 changes: 2 additions & 2 deletions package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ RUN curl -o /usr/local/bin/gomplate -sSL https://github.com/hairyhenderson/gompl

COPY etc/syslog-ng.conf /opt/syslog-ng/etc/syslog-ng.conf
COPY etc/conf.d /opt/syslog-ng/etc/conf.d
COPY etc/templates /opt/syslog-ng/etc/templates
COPY etc/context-local /opt/syslog-ng/etc/context-local
COPY etc/go_templates /opt/syslog-ng/etc/go_templates
COPY etc/conf.d/local/context /opt/syslog-ng/etc/conf.d/local/context
COPY sbin/entrypoint.sh /
RUN mkdir -p /opt/syslog-ng/var/data/disk-buffer
RUN source scl_source enable rh-python36 ;/opt/syslog-ng/sbin/syslog-ng -V
Expand Down
4 changes: 2 additions & 2 deletions package/etc/conf.d/conflib/_common/compliance_meta.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parser compliance_meta_by_source {
add-contextual-data(
selector(filters("`syslog-ng-sysconfdir`/context-local/compliance_meta_by_source.conf")),
database("context-local/compliance_meta_by_source.csv")
selector(filters("`syslog-ng-sysconfdir`/conf.d/local/context/compliance_meta_by_source.conf")),
database("conf.d/local/context/compliance_meta_by_source.csv")
ignore-case(yes)
);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
block parser vendor_product_by_source() {
add-contextual-data(
selector(filters("`syslog-ng-sysconfdir`/context-local/vendor_product_by_source.conf")),
database("context-local/vendor_product_by_source.csv")
selector(filters("`syslog-ng-sysconfdir`/conf.d/local/context/vendor_product_by_source.conf")),
database("conf.d/local/context/vendor_product_by_source.csv")
ignore-case(yes)
prefix("fields.")
);
Expand Down
4 changes: 2 additions & 2 deletions package/etc/conf.d/conflib/_splunk/splunk_context.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
block parser p_add_context_splunk(key("syslogng-fallback")) {
add-contextual-data(
selector("`key`"),
database("context-local/splunk_index.csv"),
database("conf.d/local/context/splunk_index.csv"),
prefix(".splunk.")
);
};
};
1 change: 0 additions & 1 deletion package/etc/conf.d/local/destinations/README.md

This file was deleted.

1 change: 0 additions & 1 deletion package/etc/conf.d/local/filters/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions package/etc/conf.d/local/filters/example.conf

This file was deleted.

1 change: 0 additions & 1 deletion package/etc/conf.d/local/log_paths/README.md

This file was deleted.

76 changes: 0 additions & 76 deletions package/etc/conf.d/local/log_paths/example.conf.tmpl

This file was deleted.

1 change: 0 additions & 1 deletion package/etc/conf.d/local/sources/README.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ parser p_microfocus_arcsight_ts_end {
parser p_microfocus_arcsight_source {
add-contextual-data(
selector("${fields.cef_device_vendor}_${fields.cef_device_product}"),
database("context-local/microfocus_arcsight_source.csv")
database("conf.d/context/microfocus_arcsight_source.csv")
ignore-case(yes)
prefix(".splunk.")
default-selector("unknown")
Expand Down
5 changes: 0 additions & 5 deletions package/etc/context-local/compliance_meta_by_source.conf

This file was deleted.

2 changes: 0 additions & 2 deletions package/etc/context-local/compliance_meta_by_source.csv

This file was deleted.

40 changes: 0 additions & 40 deletions package/etc/context-local/splunk_index.csv

This file was deleted.

37 changes: 0 additions & 37 deletions package/etc/context-local/vendor_product_by_source.conf

This file was deleted.

8 changes: 0 additions & 8 deletions package/etc/context-local/vendor_product_by_source.csv

This file was deleted.

File renamed without changes.
9 changes: 4 additions & 5 deletions package/etc/syslog-ng.conf
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ options {
@include "conf.d/destinations/*.conf"
@include "conf.d/log_paths/*.conf"

@include "conf.d/local/filters/*.conf"
@include "conf.d/local/filters/*/*.conf"
@include "conf.d/local/sources/*.conf"
@include "conf.d/local/destinations/*.conf"
@include "conf.d/local/log_paths/*.conf"
@include "conf.d/local/config/filters/*.conf"
@include "conf.d/local/config/sources/*.conf"
@include "conf.d/local/config/destinations/*.conf"
@include "conf.d/local/config/log_paths/*.conf"
2 changes: 1 addition & 1 deletion package/sbin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ do
echo Templating conf for $d
gomplate \
--input-dir=$d \
--template t=etc/templates/ \
--template t=etc/go_templates/ \
--exclude=*.conf --exclude=*.csv --exclude=*.t --exclude=.*\
--output-map="$d/{{ .in | strings.ReplaceAll \".conf.tmpl\" \".conf\" }}"
done
Expand Down

0 comments on commit 928350b

Please sign in to comment.