This article is a mirror article of machine translation, please click here to jump to the original article.

View: 10545|Reply: 0

Introduction to the Logstash API interface

[Copy link]
Posted on 5/7/2021 10:57:10 AM | | | |
Logstash 5.0 started with an API that outputs metrics and status monitoring of its own processes.
review

Logging System (II).NET/C# uses NLog to push logs to ELK
https://www.itsvse.com/thread-9552-1-1.html

Log System (1) Windows Installation ELK 7.10.2 Tutorial
https://www.itsvse.com/thread-9539-1-1.html
Get started with Logstash, an open-source log management tool
https://www.itsvse.com/thread-9541-1-1.html

When you run Logstash, it automatically captures runtime metrics that can be used to monitor the health and performance of your Logstash deployment.



Address:The hyperlink login is visible.

Metrics collected by Logstash include:

Logstash node information, such as pipeline settings, operating system information, and JVM information.
Plugin information, including a list of installed plugins.
Node statistics such as JVM statistics, process statistics, event-related statistics, and pipeline runtime statistics.

You can retrieve these metrics using the monitoring API provided by Logstash. These APIs are available by default and do not require any additional configuration.

Node Info API:The hyperlink login is visible.
Plugins Info API:The hyperlink login is visible.
Node Stats API:The hyperlink login is visible.
Hot Threads API:The hyperlink login is visible.


jvm

Gets JVM stats, including stats about threads, memory usage, garbage collectors, and uptime.

process

Gets process stats, including stats about file descriptors, memory consumption, and CPU usage.

events

Gets event-related statistics for the Logstash instance (regardless of how many pipelines were created and destroyed).

pipelines

Gets runtime stats about each Logstash pipeline.

reloads

Gets runtime stats about config reload successes and failures.

os

Gets runtime stats about cgroups when Logstash is running in a container.


View statistics

The following request returns a JSON document containing event-related statistics for your Logstash instance:



{
  "host" : "DESKTOP-OL3CEUC",
  "version" : "7.10.2",
  "http_address" : "127.0.0.1:9600",
  "id" : "1aa23f91-e00b-4667-8a2c-65a3b0d85c81",
  "name" : "DESKTOP-OL3CEUC",
  "ephemeral_id" : "17960ea9-6cc1-44d9-85a9-83a718ba4682",
  "status" : "green",
  "snapshot" : false,
  "pipeline" : {
    "workers" : 8,
    "batch_size" : 125,
    "batch_delay" : 50
  },
  "events" : {
    "in" : 106160,
    "filtered" : 106160,
    "out" : 106160,
    "duration_in_millis" : 113552,
    "queue_push_duration_in_millis" : 6303
  }
}

(End)




Previous:IIS DELETE PUT request 405 solution
Next:Java uses JDBC to connect sqlite URL issue
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com