Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ztrzaska/elasticsearch
Elasticsearch implementation with Spring Boot
https://github.com/ztrzaska/elasticsearch
elasticsearch elk-stack kibana logstash spring-boot
Last synced: about 1 month ago
JSON representation
Elasticsearch implementation with Spring Boot
- Host: GitHub
- URL: https://github.com/ztrzaska/elasticsearch
- Owner: ztrzaska
- Created: 2022-08-03T14:57:24.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-16T11:27:28.000Z (over 2 years ago)
- Last Synced: 2023-07-26T12:33:35.376Z (over 1 year ago)
- Topics: elasticsearch, elk-stack, kibana, logstash, spring-boot
- Language: Java
- Homepage:
- Size: 69.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elasticsearch implementation with Spring Boot
### Getting Started
Main purpose of project is using elasticsearch with spring boot. It has simple queries to database and rest endpoints. Logs are configured with logstash and can be seen via kibana.
Running elasticsearch and kibana server
>docker run -d -p 9200:9200 -p 5601:5601 nshou/elasticsearch-kibanaElasticsearch
```
http://localhost:9200?pretty
```Kibana devtools
```
http://localhost:5601/app/dev_tools#/console
```Logstash
```
logstash -f
```Example kibana query
```
POST /persons/_search
{
"query": {
"match_all": {}
}
}
```Putting data from file, db via logstash to elasticearch
```
logstash -f "D:\\logstash.conf"
logstash -f "D:\\logstash-csv.conf"
logstash -f "D:\\logstash-db.conf"
```### Reference Documentation
For further reference, please consider the following sections:
* [Elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html)
* [Kibana Guide](https://www.elastic.co/guide/en/kibana/current/index.html)
* [Logstash](https://www.elastic.co/guide/en/logstash/master/index.html)
* [Spring Data Elasticsearch](https://docs.spring.io/spring-boot/docs/2.7.2/reference/htmlsingle/#data.nosql.elasticsearch)
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.7.2/maven-plugin/reference/html/)
* [Spring Web](https://docs.spring.io/spring-boot/docs/2.7.2/reference/htmlsingle/#web)