You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user, I want to report APISIX's logs to Elasticsearch, so that i can check the logs with Kibana easily.
Elasticsearch is the distributed search and analytics engine that provides
a unified data store for solutions built on the Elastic Stack. According to the
latest database search engine ranking [1], Elasticsearch has been ranked
second Kibana provides access to the Elastic Observability, Security, and
Enterprise Search solutions, enables you to interactively explore,
visualize, and share insights into your data. APISIX report logs with
Elasticsearch's Bulk API [2].
The following are the design and technical details:
Description
As a user, I want to report APISIX's logs to Elasticsearch, so that i can check the logs with Kibana easily.
Elasticsearch is the distributed search and analytics engine that provides
a unified data store for solutions built on the Elastic Stack. According to the
latest database search engine ranking [1], Elasticsearch has been ranked
second Kibana provides access to the Elastic Observability, Security, and
Enterprise Search solutions, enables you to interactively explore,
visualize, and share insights into your data. APISIX report logs with
Elasticsearch's Bulk API [2].
The following are the design and technical details:
elasticsearch-logging
endpoint
Elasticsearch HTTP/HTTPS endpointendpoint.uri
Elasticsearch HTTP/HTTPS request uri,elasticsearch-logging
will add "_bulk" at the end of it [3].endpoint.index
Elasticsearch HTTP/HTTPS "_index" field [4]endpoint.type
Elasticsearch HTTP/HTTPS "_type" field [5]endpoint.username
Elasticsearch HTTP/HTTPSmax_retry_count
maximum number of retries before removing theentry from the processing pipeline when an error occurs.
retry_delay
number of seconds the process execution shouldbe delayed if the execution fails.
buffer_duration
max age in seconds of the oldest entry in a batchbefore the batch must be processed
inactive_timeout
max age in seconds when the buffer will be flushedif inactive
batch_max_size
max size of each batch3.1 Configuration process
it with default config if it is null) to the plugin configuration.
3.2 HTTP Request process
data format refer to [6].
is subbmitted in batches to ElasticSearch.
[1] https://db-engines.com/en/ranking/search+engine
[2] https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html#docs-bulk
[3] https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html#docs-bulk-api-request
[4] https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-index-field.html#mapping-index-field
[5] https://www.elastic.co/guide/en/elasticsearch/reference/7.17/mapping-type-field.html#mapping-type-field
[6] https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html#docs-bulk
The text was updated successfully, but these errors were encountered: