-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RHINO-221 Remove use of FLAKY RHINO-228 Allow explicit mapping to log-path by hostname (parsed) or IP Fixes #45
- Loading branch information
themrkeys
authored and
Ryan Faircloth
committed
Aug 23, 2019
1 parent
f3285e5
commit 2c160e8
Showing
58 changed files
with
979 additions
and
555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| #Splunk Connect for Syslog (SC4S) by Splunk, Inc. | ||
| # | ||
| #To the extent possible under law, the person who associated CC0 with | ||
| #Splunk Connect for Syslog (SC4S) has waived all copyright and related or neighboring rights | ||
| #to Splunk Connect for Syslog (SC4S). | ||
| # | ||
| #You should have received a copy of the CC0 legalcode along with this | ||
| #work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
| version: "3.2" | ||
| services: | ||
|
|
||
| sc4s: | ||
| image: splunk/scs:latest | ||
| build: | ||
| context: ./package | ||
| args: | ||
| RH_ORG: ${RH_ORG} | ||
| RH_ACTIVATION: ${RH_ACTIVATION} | ||
| entrypoint: | ||
| - "tail" | ||
| - "-f" | ||
| - "/dev/null" | ||
| hostname: sc4s | ||
| ports: | ||
| - "514" | ||
| - "601" | ||
| - "514/udp" | ||
| - "5514" | ||
| - "5514/udp" | ||
| stdin_open: true | ||
| tty: true | ||
| links: | ||
| - splunk | ||
| environment: | ||
| - SPLUNK_HEC_URL=${SPLUNK_HEC_URL} | ||
| - SPLUNK_HEC_STATSURL=${SPLUNK_HEC_STATSURL} | ||
| - SPLUNK_HEC_TOKEN=${SPLUNK_HEC_TOKEN} | ||
| - SPLUNK_CONNECT_METHOD=${SPLUNK_CONNECT_METHOD} | ||
| - SPLUNK_DEFAULT_INDEX=${SPLUNK_DEFAULT_INDEX} | ||
| - SPLUNK_METRICS_INDEX=${SPLUNK_DEFAULT_INDEX} | ||
| splunk: | ||
| image: splunk/splunk:latest | ||
| hostname: splunk | ||
| ports: | ||
| - "8000:8000" | ||
| - "8088:8088" | ||
| - "8089:8089" | ||
| environment: | ||
| - SPLUNK_HEC_TOKEN=${SPLUNK_HEC_TOKEN} | ||
| - SPLUNK_PASSWORD=${SPLUNK_PASSWORD} | ||
| - SPLUNK_START_ARGS=${SPLUNK_START_ARGS} | ||
| - SPLUNK_APPS_URL=${SPLUNK_APPS_URL} | ||
| - SPLUNKBASE_USERNAME=${SPLUNKBASE_USERNAME} | ||
| - SPLUNKBASE_PASSWORD=${SPLUNKBASE_PASSWORD} | ||
| volumes: | ||
| - ./splunk/SA-syslog-ng:/opt/splunk/etc/apps/SA-syslog-ng |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| filter f_rfc5424_strict{ | ||
| message('^(?<SYSLOGMSG>(?<HEADER>(?<PRI><\d{1,3}>)(?<VERSION>[1-9][0-9]?) (?<TIMESTAMP>(?<FULLDATE>(?<FULLDATEYEAR>\d{4})-(?<FULLDATEMONTH>\d\d)-(?<FULLDATEDAY>\d\d))T(?<FULLTIME>(?<PARTIALTIME>(?<TIMEHOUR>[0-2]\d):(?<TIMEMINUTE>[0-5]\d):(?<TIMESECOND>[0-5]\d)(?:.(?<TIMESECFRAC>\d{1,6}))?)(?<TIMEOFFSET>Z|(?<TIMENUMOFFSET>[+\-][0-2]\d:[0-5]\d))))))'); | ||
| }; | ||
| filter f_rfc5424_noversion{ | ||
| message('^(?<SYSLOGMSG>(?<HEADER>(?<PRI><\d{1,3}>) ?(?<TIMESTAMP>(?<FULLDATE>(?<FULLDATEYEAR>\d{4})-(?<FULLDATEMONTH>\d\d)-(?<FULLDATEDAY>\d\d))T(?<FULLTIME>(?<PARTIALTIME>(?<TIMEHOUR>[0-2]\d):(?<TIMEMINUTE>[0-5]\d):(?<TIMESECOND>[0-5]\d)(?:.(?<TIMESECFRAC>\d{1,6}))?)(?<TIMEOFFSET>Z|(?<TIMENUMOFFSET>[+\-][0-2]\d:[0-5]\d))))))'); | ||
| }; | ||
| rewrite set_rfcnonconformant{ | ||
| set("rfc5424_nonconform" value("fields.sc4s_syslog_format")); | ||
| }; | ||
| rewrite set_rfc5424_strict{ | ||
| set("rfc5424_strict" value("fields.sc4s_syslog_format")); | ||
| }; | ||
| filter f_is_rfc5424_strict{ | ||
| match("rfc5424_strict" value("fields.sc4s_syslog_format")) | ||
| }; | ||
| rewrite set_rfc5424_noversion{ | ||
| set("rfc5424_noversion" value("fields.sc4s_syslog_format")); | ||
| }; | ||
| filter f_is_rfc5424_noversion{ | ||
| match("rfc5424_noversion" value("fields.sc4s_syslog_format")) | ||
| }; | ||
| rewrite set_rfc3164{ | ||
| set("rfc3164" value("fields.sc4s_syslog_format")); | ||
| }; | ||
| filter f_is_rfc3164{ | ||
| match("rfc3164" value("fields.sc4s_syslog_format")) | ||
| }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
|
|
||
| rewrite set_metadata_presume { | ||
| set("$(env SYSLOG_PRESUME_FILTER)" value("fields.sc4s_presume")); | ||
| }; |
9 changes: 9 additions & 0 deletions
9
package/etc/conf.d/conflib/_common/vendor_product_by_source_context.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| block parser vendor_product_by_source() { | ||
| add-contextual-data( | ||
| selector(filters("/opt/syslog-ng/etc/context-local/vendor_product_by_source.conf")), | ||
| database("context-local/vendor_product_by_source.csv") | ||
| ignore-case(yes) | ||
| prefix("fields.") | ||
| ); | ||
| }; | ||
|
|
2 changes: 1 addition & 1 deletion
2
...age/etc/conf.d/blocks/splunk_context.conf → ...onf.d/conflib/_splunk/splunk_context.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/splunk_index.csv"), | ||
| database("context-local/splunk_index.csv"), | ||
| prefix(".splunk.") | ||
| ); | ||
| }; |
Oops, something went wrong.