mirror of
https://repository.entgra.net/community/entgra-elk.git
synced 2025-09-16 23:32:20 +00:00
Add license headers and add image build instructions
This commit is contained in:
parent
69e411f70a
commit
4bfb7fabd8
@ -1,5 +1,21 @@
|
|||||||
|
# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||||
|
# Version 2.0 (the "License"); you may not use this file except
|
||||||
|
# in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
FROM docker.elastic.co/elasticsearch/elasticsearch:8.2.0
|
FROM docker.elastic.co/elasticsearch/elasticsearch:8.2.0
|
||||||
|
|
||||||
RUN rm -Rf /usr/share/elasticsearch/config/elasticsearch.yml
|
RUN rm -Rf /usr/share/elasticsearch/config/elasticsearch.yml
|
||||||
|
|
||||||
COPY elasticsearch.yml /usr/share/elasticsearch/config/elasticsearch.yml
|
COPY elasticsearch.yml /usr/share/elasticsearch/config/elasticsearch.yml
|
||||||
|
|||||||
@ -1,12 +1,10 @@
|
|||||||
## Instructions
|
## Instructions
|
||||||
|
|
||||||
1. Pull the elasticsearch image
|
1. Build the Docker image
|
||||||
```bash
|
```bash
|
||||||
docker pull docker.elastic.co/elasticsearch/elasticsearch:8.2.0
|
docker build -t registry.entgra.io/entgra-elasticsearch:8.2.0-entgra-v2 -f Dockerfile .
|
||||||
```
|
```
|
||||||
Note: Change the required image version name or tag in the Dockerfile.
|
|
||||||
|
|
||||||
3. Build the Docker image
|
2. docker-compose up -d
|
||||||
```bash
|
3. docker exec -it $(docker ps -aq -n 1) /bin/bash
|
||||||
docker build -t elasticsearch:8.2.0-entgra-v1 .
|
4. docker-compose down
|
||||||
```
|
|
||||||
|
|||||||
@ -1,3 +1,19 @@
|
|||||||
|
# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||||
|
# Version 2.0 (the "License"); you may not use this file except
|
||||||
|
# in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
@ -23,4 +39,4 @@ services:
|
|||||||
interval: 60s
|
interval: 60s
|
||||||
retries: 10
|
retries: 10
|
||||||
start_period: 30s
|
start_period: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
|
|||||||
@ -1,3 +1,19 @@
|
|||||||
|
# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||||
|
# Version 2.0 (the "License"); you may not use this file except
|
||||||
|
# in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
cluster.name: "docker-cluster"
|
cluster.name: "docker-cluster"
|
||||||
network.host: 0.0.0.0
|
network.host: 0.0.0.0
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,19 @@
|
|||||||
|
# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||||
|
# Version 2.0 (the "License"); you may not use this file except
|
||||||
|
# in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
FROM docker.elastic.co/beats/filebeat:8.2.0
|
FROM docker.elastic.co/beats/filebeat:8.2.0
|
||||||
|
|
||||||
# Switch to root user
|
# Switch to root user
|
||||||
|
|||||||
@ -1,12 +1,11 @@
|
|||||||
## Instructions
|
## Instructions
|
||||||
|
|
||||||
1. Pull the filebeat image
|
1. Build the Docker image
|
||||||
```bash
|
```bash
|
||||||
docker pull docker.elastic.co/beats/filebeat:8.2.0
|
docker build -t registry.entgra.io/entgra-filebeat:8.2.0-entgra-v2 -f Dockerfile .
|
||||||
```
|
```
|
||||||
Note: Change the required image version name or tag in the Dockerfile.
|
|
||||||
|
|
||||||
3. Build the Docker image
|
2. docker-compose up -d
|
||||||
```bash
|
3. docker exec -it $(docker ps -aq -n 1) /bin/bash
|
||||||
docker build -t filebeat:8.2.0-entgra-v1 .
|
4. docker-compose down
|
||||||
```
|
|
||||||
|
|||||||
@ -1,3 +1,19 @@
|
|||||||
|
# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||||
|
# Version 2.0 (the "License"); you may not use this file except
|
||||||
|
# in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
@ -14,4 +30,4 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- TZ=Asia/Colombo
|
- TZ=Asia/Colombo
|
||||||
- LOGSTASH_HOST=logstash
|
- LOGSTASH_HOST=logstash
|
||||||
- LOGSTASH_PORT=5044
|
- LOGSTASH_PORT=5044
|
||||||
|
|||||||
@ -1,5 +1,21 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||||
|
# Version 2.0 (the "License"); you may not use this file except
|
||||||
|
# in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
# Check if ECS_CONTAINER_METADATA_FILE is set
|
# Check if ECS_CONTAINER_METADATA_FILE is set
|
||||||
if [ -z "$ECS_CONTAINER_METADATA_FILE" ]; then
|
if [ -z "$ECS_CONTAINER_METADATA_FILE" ]; then
|
||||||
echo "ECS_CONTAINER_METADATA_FILE is not set or the server is running on local deployment environment"
|
echo "ECS_CONTAINER_METADATA_FILE is not set or the server is running on local deployment environment"
|
||||||
@ -8,7 +24,7 @@ fi
|
|||||||
# Extract HostPrivateIPv4Address from the metadata file
|
# Extract HostPrivateIPv4Address from the metadata file
|
||||||
HOST_PRIVATE_IP=$(cat $ECS_CONTAINER_METADATA_FILE | grep -oP '(?<=HostPrivateIPv4Address": ")[^"]+')
|
HOST_PRIVATE_IP=$(cat $ECS_CONTAINER_METADATA_FILE | grep -oP '(?<=HostPrivateIPv4Address": ")[^"]+')
|
||||||
|
|
||||||
if [ "$HOST_PRIVATE_IP" != "null" ]; then
|
if [ -n "$HOST_PRIVATE_IP" ]; then
|
||||||
echo "Host Private IP: $HOST_PRIVATE_IP"
|
echo "Host Private IP: $HOST_PRIVATE_IP"
|
||||||
|
|
||||||
# Define the input template file and output file
|
# Define the input template file and output file
|
||||||
@ -34,4 +50,4 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Execute the original Filebeat entry point with passed arguments
|
# Execute the original Filebeat entry point with passed arguments
|
||||||
exec /usr/local/bin/docker-entrypoint "$@"
|
exec /usr/local/bin/docker-entrypoint "$@"
|
||||||
|
|||||||
@ -1,3 +1,19 @@
|
|||||||
|
# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||||
|
# Version 2.0 (the "License"); you may not use this file except
|
||||||
|
# in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
filebeat.inputs:
|
filebeat.inputs:
|
||||||
- type: log
|
- type: log
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@ -1,3 +1,19 @@
|
|||||||
|
# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||||
|
# Version 2.0 (the "License"); you may not use this file except
|
||||||
|
# in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
FROM docker.elastic.co/kibana/kibana:8.2.0
|
FROM docker.elastic.co/kibana/kibana:8.2.0
|
||||||
|
|
||||||
COPY kibana.yml /usr/share/kibana/kibana.yml
|
COPY kibana.yml /usr/share/kibana/kibana.yml
|
||||||
|
|||||||
@ -1,12 +1,11 @@
|
|||||||
## Instructions
|
## Instructions
|
||||||
|
|
||||||
1. Pull the kibana image
|
1. Build the Docker image
|
||||||
```bash
|
```bash
|
||||||
docker pull docker.elastic.co/kibana/kibana:8.2.0
|
docker build -t registry.entgra.io/entgra-kibana:8.2.0-entgra-v2 -f Dockerfile .
|
||||||
```
|
```
|
||||||
Note: Change the required image version name or tag in the Dockerfile.
|
|
||||||
|
|
||||||
3. Build the Docker image
|
2. docker-compose up -d
|
||||||
```bash
|
3. docker exec -it $(docker ps -aq -n 1) /bin/bash
|
||||||
docker build -t kibana:8.2.0-entgra-v1 .
|
4. docker-compose down
|
||||||
```
|
|
||||||
|
|||||||
@ -1,3 +1,19 @@
|
|||||||
|
# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||||
|
# Version 2.0 (the "License"); you may not use this file except
|
||||||
|
# in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
security.showInsecureClusterWarning: false
|
security.showInsecureClusterWarning: false
|
||||||
monitoring.ui.container.elasticsearch.enabled: true
|
monitoring.ui.container.elasticsearch.enabled: true
|
||||||
logging.quiet: true
|
logging.quiet: true
|
||||||
|
|||||||
@ -1,3 +1,19 @@
|
|||||||
|
# Copyright (c) 2018 - 2024, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||||
|
# Version 2.0 (the "License"); you may not use this file except
|
||||||
|
# in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
FROM docker.elastic.co/logstash/logstash:8.2.0
|
FROM docker.elastic.co/logstash/logstash:8.2.0
|
||||||
|
|
||||||
COPY logstash.conf /usr/share/logstash/pipeline/logstash.conf
|
COPY logstash.conf /usr/share/logstash/pipeline/logstash.conf
|
||||||
|
|||||||
@ -1,12 +1,11 @@
|
|||||||
## Instructions
|
## Instructions
|
||||||
|
|
||||||
1. Pull the logstash image
|
1. Build the Docker image
|
||||||
```bash
|
```bash
|
||||||
docker pull docker.elastic.co/logstash/logstash:8.2.0
|
docker build -t registry.entgra.io/entgra-logstash:8.2.0-entgra-v2 -f Dockerfile .
|
||||||
```
|
```
|
||||||
Note: Change the required image version name or tag in the Dockerfile.
|
|
||||||
|
|
||||||
3. Build the Docker image
|
2. docker-compose up -d
|
||||||
```bash
|
3. docker exec -it $(docker ps -aq -n 1) /bin/bash
|
||||||
docker build -t logstash:8.2.0-entgra-v1 .
|
4. docker-compose down
|
||||||
```
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user