elastic-stack | Elastic Stack Docker & Sample Go App | Continuous Deployment library
kandi X-RAY | elastic-stack Summary
kandi X-RAY | elastic-stack Summary
Elastic Stack which includes Elasticsearch, Kibana, Filebeat and Metricbeat. It comes with a very simple Go application that publishes a tiny HTTP API. Go app connects to a MySQL database. Also there's an HA Proxy that acts as the load balancer of the Go App to allow scale up/down the app containers.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of elastic-stack
elastic-stack Key Features
elastic-stack Examples and Code Snippets
Community Discussions
Trending Discussions on elastic-stack
QUESTION
I'm new to spring-boot & Elasticsearch technology stack and I want to establish secure HTTPS connection between my spring-boot app & elastic search server which runs locally. These are the configurations that I have done in elasticsearch.yml
Giving credintials for elasticsearch serverxpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
For secure inter nodes connection inside elasticsearch clusterxpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
For secure Https connection with clients and elasticsearch clustrerxpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: elastic-certificates.p12
xpack.security.http.ssl.truststore.path: elastic-certificates.p12
xpack.security.http.ssl.client_authentication: optional
Enabling PKI authenticationxpack.security.authc.realms.pki.pki1.order: 1
I have generated CA and client certificate which signed by generated CA according to this link
https://www.elastic.co/blog/elasticsearch-security-configure-tls-ssl-pki-authentication
And I have added CA to my java keystore.
This is the java code i'm using to establish connectivity with elasticsearch server.
@Configuration public class RestClientConfig extends AbstractElasticsearchConfiguration {
...ANSWER
Answered 2021-May-24 at 08:30Your issue looks similar to another issue, see here: Certificate for doesn't match any of the subject alternative names
So I would assume that if you add the SAN extension localhost as DNS and the ip address of localhost to the elasticsearch certificate it should work. So adding the following additional parameters: --dns localhost --ip 127.0. 0.1
. Can you give the command below a try and share your results here?
QUESTION
I am trying to create a custom track from an existing Elasticsearch cluster using the instructions in the Rally documentation page.
I am running Rally as a Docker Image. I am running elasticsearch:7.12.0 as well as a docker image in the same host. The docker container is running and host can be accessed by using basic auth.
...ANSWER
Answered 2021-May-11 at 13:56Thanks to Elastic Team for answering this question on their official discuss channel:
The setup required a docker network to be configured and shared between the Elasticsearch and Rally containers in order for them to communicate.
We don't state here how your Elasticsearch container is run, but once we have it executing with a network we can run rally with the following (provided you replace the network and container name placeholders):
QUESTION
I have deployed ECK (using helm) on my k8s cluster and i am attempting to install elasticsearch following the docs. https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-elasticsearch.html
I have externally exposed service/elasticsearch-prod-es-http so that i can connect to it from outside of my k8s cluster. However as you can see when i try to connect to it either from curl or the browser i receive an error "502 Bad Gateway" error.
...ANSWER
Answered 2021-Apr-27 at 16:22If anyone comes across this problem in the future, make sure your ingress is properly configured. The error message suggests that its a misconfiguration with the ingress.
QUESTION
I was reading the elasticsearch documentation on Elastic Stack on Docker with TLS.
I came across this line in the healthcheck block:
...ANSWER
Answered 2021-Mar-29 at 07:20I am no expert in docker nor elasticsearch.
Perhaps this has less to do with bash
than with make
.
To get a $
in a makefile
it must be escaped with an additional $
. So to get $?
in a makefile you need $$?
.
On the other hand in bash $$
gets you the pid of the current process, so of the bash.
QUESTION
I stumbled across lost log messages in our environment.
We use an ELK Stack and logback with logstash-logback-encoder in our Java applications. To do structured queries we use LogstashMarkers to append structured arguments to the logs. In the case of the lost log messages it is a string, which contains a JSON.
Some of the log messages are lost completly. Not only the markers were not saved but the complete log message. They are not visible in Kibana. There are no errors in the logs of our application or the logstash server.
I could create an example repository with minimal code and published it at GitHub: https://github.com/seism0saurus/logging-issue
To run it, you need a logstash server and netcat. The logger in that project is configured to use a console appender, so we have a reference, what messages where really logged. Additionally there is one appender for a netcat server on localhost:8081 and one appender for the logstash server. Both have the same config. Only the address is different. So I'm quite sure that the message is send to the logstash server, if it is send to netcat.
Here is the code of the main class:
...ANSWER
Answered 2021-Mar-03 at 08:32We found the problem. To help others, who come across this question, I will explain the problem and the solution here.
The log messages were successfully transmitted to logstash and elasticsearch. So there were no errors in those logs. The reason, that we could not find the log entries was the field for the "payload". We have multiple services and one of them was sending an object instead of a string. That lead to a mapping conflict and the log messages could not be accessed.
The solution for us was to define an explicit mapping and to introduce a naming convention. Now we have a text field payload and an object field payloadAsObject. This convention is used in all of our services.
The problematic log entries were far enough in the past, so we could delete the old index and solve the conflict. But there are possibilities to reindex the data without downtime. For example this one: https://medium.com/craftsmenltd/rebuild-elasticsearch-index-without-downtime-168363829ea4
QUESTION
For the past week I am trying to connect a Winlogbeat(Which is on my host machine) To an elasticsearch Cluster that I set up on an Ubuntu VM using dockers.
Following this tutorial. (In the tutorial they don't explain how to connect a Beat)
My problem is with the SSL configuration (Of the Winlogbeat) I just can't get it right for some reason.
This is the error I get on the windows machine after running the setup command (.\winlogbeat.exe setup -e) -
...ANSWER
Answered 2021-Feb-27 at 12:14So it took me some time, but I've figured out what was the problem with my certificate. I didn't add it to the trusted root store on my windows machine.
In the end I've created a Winlogbeat crt and key using the elasticsearch-certutil tool by adding a Winlogbeat instance to the instances.yml file and copied the winlogbeat.crt, winlogbeat.key and ca.crt to my windows machine.
Note - You can find all of them under /var/lib/docker/volumes/es_certs/_data/
On the windows machine I configured the Winlogbeat the normal way and in the end I've added the ca.crt to the trusted root store using this tutorial.
QUESTION
I created elasticsearch cluster flowing by the article: Running the Elastic Stack on Docker
After the elasticsearch runs, I need to create snapshot and restore to backup my data. I modified my elastic-docker-tls.yml file:
...ANSWER
Answered 2020-Jun-03 at 00:56You can set chown
for elasticsearch user in docker volume.
Run
ls -l
show all mod of directory in elasticsearchRun
chown elasticsearch /backup
QUESTION
Using the docker-compose.yml file by here (online changed version 7.9.1. to 7.9.2)
as seen below full content of docker-compose.yml;
...ANSWER
Answered 2020-Sep-25 at 09:33It seems that both containers are started at same time so kibana is unable to identify elasticsearch container.
in Kibana service: Add below parameters in docker-compose.yml filedepends_on:
- es01 environment:
- 'ELASTICSEARCH_HOSTS=http://es01:9200'
- 'XPACK_MONITORING_UI_CONTAINER_ELASTICSEARCH.ENABLED=false'
Instead of dict. try to use lists in env. variable
QUESTION
I'm trying to deploy elk stack in kubernetes cluster with helm, using this chart. When I launch
helm install elk-stack stable/elastic-stack
I receive the following message:
...ANSWER
Answered 2020-Aug-24 at 16:55The reason why pod is pending is below PVCs are pending because corresponding PVs are not created.
QUESTION
I would like to deploy elastic-stack into Kubernetes cluster. I git clone the chart, use default settings. But, I got errors.
git clone https://github.com/helm/charts
Create namespace
kubectl create namespace elastic-stack
At $HOME/charts
$ helm install elastic-stack stable/elastic-stack --namespace=elastic-stack
Error: found in Chart.yaml, but missing in charts/ directory: elasticsearch, kibana, filebeat, logstash, fluentd, fluent-bit, fluentd-elasticsearch, nginx-ldapauth-proxy, elasticsearch-curator, elasticsearch-exporter
helm version version.BuildInfo{Version:"v3.3.0-rc.1"
...ANSWER
Answered 2020-Aug-15 at 11:34Have you enabled the stable repo for helm ? you can check this by running helm repo list
If not, please add using helm repo add stable https://kubernetes-charts.storage.googleapis.com
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install elastic-stack
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page