Skip to content

Commit 0ce1fe2

Browse files
committed
6.8.2 release
1 parent fbd6162 commit 0ce1fe2

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# CHANGELOG
22

3+
## 6.8.2-1
4+
5+
* Removes previously added `INPUT_KUBERNETES_FILE_CHUNK_COUNT`, `INPUT_KUBERNETES_FILE_CHUNK_SIZE` environment variables
6+
due to the version of `logstash-input-file` plugin used.
7+
* Preinstalls `logstash-input-file` plugin v4.0.5 due to log change tracking issues in v.4.1.10.
8+
* Renames `logstash.yml` config option:
9+
`xpack.monitoring.elasticsearch.url` -> `xpack.monitoring.elasticsearch.hosts`
10+
311
## 6.8.1-3
412

513
* Removes `ELASTICSEARCH_FLUSH_SIZE` as it's now obsolete.

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ RUN dnf upgrade -y -q && \
55
dnf install -y -q java-headless which hostname tar wget && \
66
dnf clean all
77

8-
ENV LS_VERSION 6.8.1
8+
ENV LS_VERSION 6.8.2
99

1010
RUN wget -q https://artifacts.elastic.co/downloads/logstash/logstash-${LS_VERSION}.tar.gz -O - | tar -xzf -; \
1111
mv logstash-${LS_VERSION} /logstash
1212

1313
RUN JARS_SKIP=true /logstash/bin/logstash-plugin install --version 0.3.1 logstash-filter-kubernetes && \
1414
JARS_SKIP=true /logstash/bin/logstash-plugin install --version 2.0.2 logstash-input-journald && \
15+
JARS_SKIP=true /logstash/bin/logstash-plugin install --version 4.0.5 logstash-input-file && \
1516
JARS_SKIP=true /logstash/bin/logstash-plugin install --version 3.2.0 logstash-output-statsd
1617

1718
COPY run.sh /run.sh

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ As usual, configuration is passed through environment variables.
3939
- `LS_JAVA_OPTS` - JVM Options. Default: `-Djava.io.tmpdir=${HOME}`
4040
- `INPUT_KUBERNETES` - Enable kubernetes logs ingestion. Default: `true`.
4141
- `INPUT_KUBERNETES_EXCLUDE_PATTERNS` - Comma separated list of log file path patterns to be excluded from processing. Example: `"*.gz", "*.tar"`. Default: `""`.
42-
- `INPUT_KUBERNETES_FILE_CHUNK_COUNT` - [file_chunk_count](https://www.elastic.co/guide/en/logstash/6.8/plugins-inputs-file.html#plugins-inputs-file-file_chunk_count). Default: 32.
43-
- `INPUT_KUBERNETES_FILE_CHUNK_SIZE` - [file_chunk_size](https://www.elastic.co/guide/en/logstash/6.8/plugins-inputs-file.html#plugins-inputs-file-file_chunk_size). Default: 32768 (32KB).
4442
- `INPUT_JOURNALD` - Enable logs ingestion from journald. Default: `true`.
4543
- `INPUT_KUBERNETES_AUDIT` - Enable kubernetes audit logs ingestion. Default: `true`.
4644
- `OUTPUT_ELASTICSEARCH` - Enable logs output to Elasticsearch. Default `true`.

conf.d/10_input_kubernetes.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ input {
55
tags => ["kubernetes", "docker"]
66
start_position => "beginning"
77
sincedb_path => "/var/lib/logstash/sincedb_kubernetes"
8-
file_chunk_count => %INPUT_KUBERNETES_FILE_CHUNK_COUNT%
9-
file_chunk_size => %INPUT_KUBERNETES_FILE_CHUNK_SIZE%
108
%INPUT_KUBERNETES_EXCLUDE_PATTERNS%
119
}
1210
}

config/logstash.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
node.name: %LS_NODE_NAME%
33
http.host: %LS_HTTP_HOST%
44
xpack.monitoring.enabled: %LS_MONITORING_ENABLE%
5-
xpack.monitoring.elasticsearch.url: %ELASTICSEARCH_SCHEME%://%ELASTICSEARCH_HOST%
5+
xpack.monitoring.elasticsearch.hosts: [ %ELASTICSEARCH_SCHEME%://%ELASTICSEARCH_HOST% ]
66
xpack.monitoring.elasticsearch.username: %ELASTICSEARCH_USER%
77
xpack.monitoring.elasticsearch.password: %ELASTICSEARCH_PASSWORD%

run.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ export HOME=/var/lib/logstash
1212
: ${LS_NODE_NAME:=$HOSTNAME}
1313
: ${LS_HTTP_HOST:=0.0.0.0}
1414
: ${INPUT_KUBERNETES_EXCLUDE_PATTERNS:=}
15-
: ${INPUT_KUBERNETES_FILE_CHUNK_COUNT:=32} # 1MB chunks as default chunk size is 32KB
16-
: ${INPUT_KUBERNETES_FILE_CHUNK_SIZE:=32768} # 32KB
1715
: ${INPUT_JOURNALD:=true}
1816
: ${INPUT_KUBERNETES_AUDIT:=true}
1917
: ${INPUT_KUBERNETES:=true}
@@ -41,10 +39,6 @@ else
4139
-i /logstash/conf.d/10_input_kubernetes.conf
4240
fi
4341

44-
sed -e "s/%INPUT_KUBERNETES_FILE_CHUNK_COUNT%/${INPUT_KUBERNETES_FILE_CHUNK_COUNT}/" \
45-
-e "s/%INPUT_KUBERNETES_FILE_CHUNK_SIZE%/${INPUT_KUBERNETES_FILE_CHUNK_SIZE}/" \
46-
-i /logstash/conf.d/10_input_kubernetes.conf
47-
4842
if [[ ${INPUT_JOURNALD} != 'true' ]]; then
4943
rm -f /logstash/conf.d/10_input_journald.conf
5044
fi

0 commit comments

Comments
 (0)