Fixing logstash issue with elastic cloud
- We had issue with pipeline id. removed the pipeline field
- restarted all the services and executing requests from a script
- so filebeat reads the logs and sends to logstash, logstash breaks the message into multiple fields and stores in elastic search with index name
apachelog-* - Now create a data view from kibana


- Watch the classroom video for visualizations
- We were able to search logs by writing simple queries and create pie charts, line charts, metric etc
Lets trace some java application
-
Installing sample application
- openjdk 11
sudo apt update
sudo apt install openjdk-11-jdk -y - download the jar file Refer Here
- openjdk 11
-
Open APM


- Java app tracing

- Download apm-agent jar
wget https://oss.sonatype.org/service/local/repositories/releases/content/co/elastic/apm/elastic-apm-agent/1.38.0/elastic-apm-agent-1.38.0.jar - We have run the app with following args
java -javaagent:elastic-apm-agent-1.38.0.jar \
-Delastic.apm.service_name=pet-clinic \
-Delastic.apm.secret_token=uu0Dl9Q09RFfMdq86p \
-Delastic.apm.server_url=https://eff6e04ad9d6425fa3492b1a56f794a3.apm.us-central1.gcp.cloud.es.io:443 \
-Delastic.apm.environment=dev \
-Delastic.apm.application_packages=org.spring \
-jar spring-petclinic-2.4.2.jar
- Use the application and launch apm





