Experiments configuring OpenSearch to work with our common application patterns.
OpenSearch is an open search fork of the elk stack which consists of Elastic Search, Logstash and Kibana. OpenSeach Dashboards is the open source fork of Kibana.
This other pages on this site are intended to be rendered in a docker container. Some markdown links will only work when viewed from a container. The instructions will describe how to launch that container.
Docker is required for this tutorial. See our docker tutorial for background.
These examples should work on Linux or Mac. Contributions are welcome to make these examples work on Windows.
These instructions presume that ports 8080-8099 are open to internet.
- Ports 8086, 8094 and 8080 are used in these examples.
graph TD;
Tutorial[[Tutorial Files]]
Markdown(Markdown Renderer for Tutorial)
OpenSearch(OpenSearch Service)
Logstash(Logstash - upload log files to OpenSearch)
OpenSearchDashboards(OpenSearch Dashboards)
Init(Initialization Container)
Tutorial-->Markdown
Tutorial-->Logstash
Tutorial-->Init
Init-->OpenSearchDashboards
Logstash-->OpenSearch
OpenSearch<-->OpenSearchDashboards
Markdown-.->OpenSearchDashboards
subgraph OptionalServices
Tomcat(Tomcat)
Rails(Rails)
Minio(Minio - CloudStorage)
Logfiles[[Application Log Files]]
end
Tomcat-->Logfiles
Rails-->Logfiles
Logfiles-->Logstash
Minio-->Logstash
export MYHOSTNAME=$(hostname)
export MYHOSTNAME=$(hostname).$(domainname)
docker-compose up -d --build
echo "Open http://${MYHOSTNAME}:8086/" in your browser to view these instructions.
- Start the docker stack
- Explore the configuration files
- Explore the open search dashboard to see the results
- For each example in this tutorial, a sample search was constructed from the opensearch dashboard screen and then shared as a permalink
- Stop the docker stack
- Continue to the next example
- Explore Kibana / OpenSearch Dashboards
- Sample Files - No Json Filter
- Sample Files - Json Filter
- Sample Files - Date Normalization
- ALB Logs
- ALB Logs from S3
- Catalina Logs from running tomcat
- Access Logs from running tomcat
- Json Application Logs from running tomcat
- Handle 3 types of tomcat logs
- Rails logs
- Sample Files - Update Json via document id
These examples are used internally by our development team. The sample data is not available for this tutorial. These examples load "saved objects" (searches, visualizations, dashboards) into opensearch dashboards.
docker-compose -f docker-compose.yml -f logstash-viz.yml up -d
docker-compose -f docker-compose.yml -f logstash-mimefile.yml up -d
docker-compose -f docker-compose.yml -f objhealth.yml up -d