fluent-plugin-parser-cloudfoundry-syslog 0.1.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -9
- data/fluent-plugin-parser-cloudfoundry-syslog.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e179065a01dd18c542f3ba79bac775c2847cc70a4ce215616159f7353c755e3
|
|
4
|
+
data.tar.gz: e57cb69414bb582eb17bee59f45a163f7dfe99a750349a5bab7441e226b92176
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: caba642dd6dcd56ea53cf287a5292736f6a61878fee33a07b5fd9501bf94ccb72eb3051e2f9fad744566a9a77a85a5635ffe9e83e38cbb661b17b03d429532da
|
|
7
|
+
data.tar.gz: 84a64db28e2778fbd7ae966009ec207e0520f6928d2a4eeabc51a4b78bb4a2129ce25f7f62df3914e717aea0ab0436d321be688510233f2bbd9a8ed41e5c547e
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# fluent-plugin-parser-cloudfoundry-syslog
|
|
2
2
|
|
|
3
|
-
A
|
|
3
|
+
A [fluentd](https://www.fluentd.org/) parser for CloudFoundry specific syslog drains - basically the opposite end of their [output formatter](https://github.com/cloudfoundry/fluent-plugin-syslog_rfc5424).
|
|
4
4
|
|
|
5
5
|
This plugin should make CF metrics more accessible than the current [syslog parser for fluent](https://docs.fluentd.org/parser/syslog) allows for.
|
|
6
6
|
|
|
@@ -86,18 +86,22 @@ An access log in the format
|
|
|
86
86
|
|
|
87
87
|
## Usage
|
|
88
88
|
|
|
89
|
+
Install the plugin:
|
|
90
|
+
|
|
91
|
+
```sh
|
|
92
|
+
# See https://github.com/BitPatty/fluent-plugin-parser-cloudfoundry-syslog/releases for a list of valid versions
|
|
93
|
+
gem install fluent-plugin-parser-cloudfoundry-syslog --version "<desired version>"
|
|
94
|
+
```
|
|
95
|
+
|
|
89
96
|
Create a logdrain and update your fluent configuration:
|
|
90
97
|
|
|
91
98
|
```conf
|
|
92
99
|
<source>
|
|
100
|
+
# Use TCP or HTTP, depending on what your logdrain is
|
|
101
|
+
# configured to use
|
|
93
102
|
@type http
|
|
94
103
|
|
|
95
|
-
#
|
|
96
|
-
port "#{ENV['PORT']}"
|
|
97
|
-
bind 0.0.0.0
|
|
98
|
-
|
|
99
|
-
body_size_limit 32m
|
|
100
|
-
keepalive_timeout 10s
|
|
104
|
+
# Your source configuration...
|
|
101
105
|
|
|
102
106
|
<parse>
|
|
103
107
|
@type cloudfoundry_syslog
|
|
@@ -115,9 +119,9 @@ Create a logdrain and update your fluent configuration:
|
|
|
115
119
|
|
|
116
120
|
## Limitations
|
|
117
121
|
|
|
118
|
-
- Values in `STRUCTURED-DATA`, such as app names, may not contain quotes since they're not being escaped on CloudFoundry's side. See https://github.com/cloudfoundry/loggregator-agent-release/issues/69
|
|
122
|
+
- ~~Values in `STRUCTURED-DATA`, such as app names, may not contain quotes since they're not being escaped on CloudFoundry's side. See https://github.com/cloudfoundry/loggregator-agent-release/issues/69~~ => should be fixed with https://github.com/cloudfoundry/loggregator-agent-release/releases/tag/v6.3.7
|
|
119
123
|
|
|
120
124
|
## Credit
|
|
121
125
|
|
|
122
126
|
- [fluent-plugin-elasticsearch](https://github.com/uken/fluent-plugin-elasticsearch) used as reference for boilerplating the codebase and GH workflows
|
|
123
|
-
- [fluentd/parser_syslog](https://github.com/fluent/fluentd/blob/master/lib/fluent/plugin/parser_syslog.rb) used as reference on the current builtin syslog parser
|
|
127
|
+
- [fluentd/parser_syslog](https://github.com/fluent/fluentd/blob/master/lib/fluent/plugin/parser_syslog.rb) used as reference on the current builtin syslog parser
|
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |spec|
|
|
5
5
|
spec.name = "fluent-plugin-parser-cloudfoundry-syslog"
|
|
6
|
-
spec.version = "0.
|
|
6
|
+
spec.version = "1.0.0"
|
|
7
7
|
spec.authors = ["Matteias Collet"]
|
|
8
8
|
spec.email = ["matteias.collet@bluewin.ch"]
|
|
9
9
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-parser-cloudfoundry-syslog
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matteias Collet
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|