Elasticsearch:Usage API

760 阅读21分钟

我们可以通过这个 API 提供有关已安装 X-Pack 功能的使用信息。它的请求形式为:

GET /_xpack/usage

前提条件

如果启用了 Elasticsearch 安全功能,你必须具有 monitor 或 manage cluster 权限才能使用此 API。

描述

此 API 提供有关当前许可证下当前启用和可用的功能以及一些使用统计信息的信息。

请求参数

master_timeout:这是个可选参数,它表示 time units。等待连接到主节点的时间。 如果在超时到期之前没有收到响应,则请求失败并返回错误。 默认为 30 秒。

例子

GET /_xpack/usage

上面的命令在我的电脑上返回的结果如下:

`

1.  {
2.    "aggregate_metric": {
3.      "available": true,
4.      "enabled": true
5.    },
6.    "analytics": {
7.      "available": true,
8.      "enabled": true,
9.      "stats": {
10.        "boxplot_usage": 0,
11.        "cumulative_cardinality_usage": 0,
12.        "string_stats_usage": 12,
13.        "top_metrics_usage": 7,
14.        "t_test_usage": 0,
15.        "moving_percentiles_usage": 0,
16.        "normalize_usage": 0,
17.        "rate_usage": 0,
18.        "multi_terms_usage": 0
19.      }
20.    },
21.    "ccr": {
22.      "available": false,
23.      "enabled": true,
24.      "follower_indices_count": 0,
25.      "auto_follow_patterns_count": 0
26.    },
27.    "data_streams": {
28.      "available": true,
29.      "enabled": true,
30.      "data_streams": 4,
31.      "indices_count": 5
32.    },
33.    "data_tiers": {
34.      "available": true,
35.      "enabled": true,
36.      "data_warm": {
37.        "node_count": 1,
38.        "index_count": 1,
39.        "total_shard_count": 1,
40.        "primary_shard_count": 1,
41.        "doc_count": 85446,
42.        "total_size_bytes": 53885756,
43.        "primary_size_bytes": 53885756,
44.        "primary_shard_size_avg_bytes": 53885756,
45.        "primary_shard_size_median_bytes": 53885756,
46.        "primary_shard_size_mad_bytes": 0
47.      },
48.      "data_frozen": {
49.        "node_count": 1,
50.        "index_count": 0,
51.        "total_shard_count": 0,
52.        "primary_shard_count": 0,
53.        "doc_count": 0,
54.        "total_size_bytes": 0,
55.        "primary_size_bytes": 0,
56.        "primary_shard_size_avg_bytes": 0,
57.        "primary_shard_size_median_bytes": 0,
58.        "primary_shard_size_mad_bytes": 0
59.      },
60.      "data_cold": {
61.        "node_count": 1,
62.        "index_count": 0,
63.        "total_shard_count": 0,
64.        "primary_shard_count": 0,
65.        "doc_count": 0,
66.        "total_size_bytes": 0,
67.        "primary_size_bytes": 0,
68.        "primary_shard_size_avg_bytes": 0,
69.        "primary_shard_size_median_bytes": 0,
70.        "primary_shard_size_mad_bytes": 0
71.      },
72.      "data_content": {
73.        "node_count": 1,
74.        "index_count": 13,
75.        "total_shard_count": 16,
76.        "primary_shard_count": 16,
77.        "doc_count": 3104,
78.        "total_size_bytes": 57271904,
79.        "primary_size_bytes": 57271904,
80.        "primary_shard_size_avg_bytes": 3579494,
81.        "primary_shard_size_median_bytes": 10238,
82.        "primary_shard_size_mad_bytes": 10013
83.      },
84.      "data_hot": {
85.        "node_count": 1,
86.        "index_count": 4,
87.        "total_shard_count": 4,
88.        "primary_shard_count": 4,
89.        "doc_count": 64515,
90.        "total_size_bytes": 49585439,
91.        "primary_size_bytes": 49585439,
92.        "primary_shard_size_avg_bytes": 12396359,
93.        "primary_shard_size_median_bytes": 45137,
94.        "primary_shard_size_mad_bytes": 26232
95.      }
96.    },
97.    "eql": {
98.      "available": true,
99.      "enabled": true,
100.      "features": {
101.        "joins": {
102.          "join_queries_three": 0,
103.          "join_queries_two": 0,
104.          "join_until": 0,
105.          "join_queries_five_or_more": 0,
106.          "join_queries_four": 0
107.        },
108.        "sequence": 0,
109.        "keys": {
110.          "join_keys_two": 0,
111.          "join_keys_one": 0,
112.          "join_keys_three": 0,
113.          "join_keys_five_or_more": 0,
114.          "join_keys_four": 0
115.        },
116.        "join": 0,
117.        "sequences": {
118.          "sequence_queries_three": 0,
119.          "sequence_queries_four": 0,
120.          "sequence_queries_two": 0,
121.          "sequence_until": 0,
122.          "sequence_maxspan": 0,
123.          "sequence_queries_five_or_more": 0
124.        },
125.        "event": 0,
126.        "pipes": {
127.          "pipe_tail": 0,
128.          "pipe_head": 0
129.        }
130.      },
131.      "queries": {
132.        "all": {
133.          "total": 0,
134.          "failed": 0
135.        },
136.        "_all": {
137.          "total": 0,
138.          "failed": 0
139.        }
140.      }
141.    },
142.    "frozen_indices": {
143.      "available": true,
144.      "enabled": true,
145.      "indices_count": 0
146.    },
147.    "graph": {
148.      "available": false,
149.      "enabled": true
150.    },
151.    "ilm": {
152.      "policy_count": 26,
153.      "policy_stats": [
154.        {
155.          "phases": {
156.            "hot": {
157.              "min_age": 0,
158.              "actions": [
159.                "rollover",
160.                "migrate"
161.              ],
162.              "configurations": {
163.                "rollover": {
164.                  "max_age": "30d",
165.                  "max_age_millis": 2592000000,
166.                  "max_primary_shard_size": "50gb",
167.                  "max_primary_shard_size_bytes": 53687091200
168.                }
169.              }
170.            },
171.            "delete": {
172.              "min_age": 7776000000,
173.              "actions": [
174.                "delete",
175.                "migrate"
176.              ],
177.              "configurations": {}
178.            }
179.          },
180.          "indices_managed": 1
181.        },
182.        {
183.          "phases": {
184.            "hot": {
185.              "min_age": 0,
186.              "actions": [
187.                "set_priority",
188.                "rollover",
189.                "migrate"
190.              ],
191.              "configurations": {
192.                "rollover": {
193.                  "max_age": "30d",
194.                  "max_age_millis": 2592000000,
195.                  "max_size": "50gb",
196.                  "max_size_bytes": 53687091200
197.                },
198.                "set_priority": {
199.                  "priority": 100
200.                }
201.              }
202.            },
203.            "delete": {
204.              "min_age": 31536000000,
205.              "actions": [
206.                "delete",
207.                "migrate"
208.              ],
209.              "configurations": {}
210.            }
211.          },
212.          "indices_managed": 0
213.        },
214.        {
215.          "phases": {
216.            "hot": {
217.              "min_age": 0,
218.              "actions": [
219.                "set_priority",
220.                "rollover",
221.                "migrate"
222.              ],
223.              "configurations": {
224.                "rollover": {
225.                  "max_age": "30d",
226.                  "max_age_millis": 2592000000,
227.                  "max_size": "50gb",
228.                  "max_size_bytes": 53687091200
229.                },
230.                "set_priority": {
231.                  "priority": 100
232.                }
233.              }
234.            },
235.            "delete": {
236.              "min_age": 31536000000,
237.              "actions": [
238.                "delete",
239.                "migrate"
240.              ],
241.              "configurations": {}
242.            }
243.          },
244.          "indices_managed": 0
245.        },
246.        {
247.          "phases": {
248.            "warm": {
249.              "min_age": 172800000,
250.              "actions": [
251.                "shrink",
252.                "forcemerge",
253.                "migrate"
254.              ],
255.              "configurations": {
256.                "forcemerge": {
257.                  "max_num_segments": 1
258.                },
259.                "shrink": {
260.                  "number_of_shards": 1
261.                }
262.              }
263.            },
264.            "hot": {
265.              "min_age": 0,
266.              "actions": [
267.                "rollover",
268.                "migrate"
269.              ],
270.              "configurations": {
271.                "rollover": {
272.                  "max_age": "30d",
273.                  "max_age_millis": 2592000000,
274.                  "max_primary_shard_size": "50gb",
275.                  "max_primary_shard_size_bytes": 53687091200
276.                }
277.              }
278.            },
279.            "delete": {
280.              "min_age": 2592000000,
281.              "actions": [
282.                "delete",
283.                "migrate"
284.              ],
285.              "configurations": {}
286.            }
287.          },
288.          "indices_managed": 0
289.        },
290.        {
291.          "phases": {
292.            "hot": {
293.              "min_age": 0,
294.              "actions": [
295.                "rollover",
296.                "migrate"
297.              ],
298.              "configurations": {
299.                "rollover": {
300.                  "max_age": "1d",
301.                  "max_age_millis": 86400000,
302.                  "max_primary_shard_size": "50gb",
303.                  "max_primary_shard_size_bytes": 53687091200
304.                }
305.              }
306.            },
307.            "delete": {
308.              "min_age": 86400000,
309.              "actions": [
310.                "delete",
311.                "migrate"
312.              ],
313.              "configurations": {}
314.            }
315.          },
316.          "indices_managed": 0
317.        },
318.        {
319.          "phases": {
320.            "hot": {
321.              "min_age": 0,
322.              "actions": [
323.                "rollover",
324.                "migrate"
325.              ],
326.              "configurations": {
327.                "rollover": {
328.                  "max_age": "30d",
329.                  "max_age_millis": 2592000000,
330.                  "max_primary_shard_size": "50gb",
331.                  "max_primary_shard_size_bytes": 53687091200
332.                }
333.              }
334.            }
335.          },
336.          "indices_managed": 1
337.        },
338.        {
339.          "phases": {
340.            "hot": {
341.              "min_age": 0,
342.              "actions": [
343.                "rollover",
344.                "migrate"
345.              ],
346.              "configurations": {
347.                "rollover": {
348.                  "max_age": "30d",
349.                  "max_age_millis": 2592000000,
350.                  "max_primary_shard_size": "50gb",
351.                  "max_primary_shard_size_bytes": 53687091200
352.                }
353.              }
354.            },
355.            "delete": {
356.              "min_age": 7776000000,
357.              "actions": [
358.                "delete",
359.                "migrate"
360.              ],
361.              "configurations": {}
362.            }
363.          },
364.          "indices_managed": 0
365.        },
366.        {
367.          "phases": {
368.            "hot": {
369.              "min_age": 0,
370.              "actions": [
371.                "set_priority",
372.                "rollover",
373.                "migrate"
374.              ],
375.              "configurations": {
376.                "rollover": {
377.                  "max_age": "30d",
378.                  "max_age_millis": 2592000000,
379.                  "max_size": "50gb",
380.                  "max_size_bytes": 53687091200
381.                },
382.                "set_priority": {
383.                  "priority": 100
384.                }
385.              }
386.            },
387.            "delete": {
388.              "min_age": 31536000000,
389.              "actions": [
390.                "delete",
391.                "migrate"
392.              ],
393.              "configurations": {}
394.            }
395.          },
396.          "indices_managed": 0
397.        },
398.        {
399.          "phases": {
400.            "hot": {
401.              "min_age": 0,
402.              "actions": [
403.                "rollover",
404.                "migrate"
405.              ],
406.              "configurations": {
407.                "rollover": {
408.                  "max_age": "30d",
409.                  "max_age_millis": 2592000000,
410.                  "max_primary_shard_size": "10gb",
411.                  "max_primary_shard_size_bytes": 10737418240
412.                }
413.              }
414.            },
415.            "delete": {
416.              "min_age": 2592000000,
417.              "actions": [
418.                "delete",
419.                "migrate"
420.              ],
421.              "configurations": {}
422.            }
423.          },
424.          "indices_managed": 1
425.        },
426.        {
427.          "phases": {
428.            "hot": {
429.              "min_age": 0,
430.              "actions": [
431.                "rollover",
432.                "migrate"
433.              ],
434.              "configurations": {
435.                "rollover": {
436.                  "max_primary_shard_size": "50gb",
437.                  "max_primary_shard_size_bytes": 53687091200
438.                }
439.              }
440.            }
441.          },
442.          "indices_managed": 0
443.        },
444.        {
445.          "phases": {
446.            "hot": {
447.              "min_age": 0,
448.              "actions": [
449.                "set_priority",
450.                "rollover",
451.                "migrate"
452.              ],
453.              "configurations": {
454.                "rollover": {
455.                  "max_age": "1d",
456.                  "max_age_millis": 86400000
457.                },
458.                "set_priority": {
459.                  "priority": 100
460.                }
461.              }
462.            },
463.            "delete": {
464.              "min_age": 1209600000,
465.              "actions": [
466.                "delete",
467.                "migrate"
468.              ],
469.              "configurations": {}
470.            }
471.          },
472.          "indices_managed": 0
473.        },
474.        {
475.          "phases": {
476.            "warm": {
477.              "min_age": 172800000,
478.              "actions": [
479.                "shrink",
480.                "forcemerge",
481.                "migrate"
482.              ],
483.              "configurations": {
484.                "forcemerge": {
485.                  "max_num_segments": 1
486.                },
487.                "shrink": {
488.                  "number_of_shards": 1
489.                }
490.              }
491.            },
492.            "cold": {
493.              "min_age": 2592000000,
494.              "actions": [
495.                "migrate"
496.              ],
497.              "configurations": {}
498.            },
499.            "hot": {
500.              "min_age": 0,
501.              "actions": [
502.                "rollover",
503.                "migrate"
504.              ],
505.              "configurations": {
506.                "rollover": {
507.                  "max_age": "30d",
508.                  "max_age_millis": 2592000000,
509.                  "max_primary_shard_size": "50gb",
510.                  "max_primary_shard_size_bytes": 53687091200
511.                }
512.              }
513.            },
514.            "delete": {
515.              "min_age": 15552000000,
516.              "actions": [
517.                "delete",
518.                "migrate"
519.              ],
520.              "configurations": {}
521.            }
522.          },
523.          "indices_managed": 0
524.        },
525.        {
526.          "phases": {
527.            "hot": {
528.              "min_age": 0,
529.              "actions": [
530.                "rollover",
531.                "migrate"
532.              ],
533.              "configurations": {
534.                "rollover": {
535.                  "max_age": "30d",
536.                  "max_age_millis": 2592000000,
537.                  "max_primary_shard_size": "50gb",
538.                  "max_primary_shard_size_bytes": 53687091200
539.                }
540.              }
541.            }
542.          },
543.          "indices_managed": 0
544.        },
545.        {
546.          "phases": {
547.            "warm": {
548.              "min_age": 172800000,
549.              "actions": [
550.                "shrink",
551.                "forcemerge",
552.                "migrate"
553.              ],
554.              "configurations": {
555.                "forcemerge": {
556.                  "max_num_segments": 1
557.                },
558.                "shrink": {
559.                  "number_of_shards": 1
560.                }
561.              }
562.            },
563.            "cold": {
564.              "min_age": 2592000000,
565.              "actions": [
566.                "migrate"
567.              ],
568.              "configurations": {}
569.            },
570.            "hot": {
571.              "min_age": 0,
572.              "actions": [
573.                "rollover",
574.                "migrate"
575.              ],
576.              "configurations": {
577.                "rollover": {
578.                  "max_age": "30d",
579.                  "max_age_millis": 2592000000,
580.                  "max_primary_shard_size": "50gb",
581.                  "max_primary_shard_size_bytes": 53687091200
582.                }
583.              }
584.            },
585.            "delete": {
586.              "min_age": 7776000000,
587.              "actions": [
588.                "delete",
589.                "migrate"
590.              ],
591.              "configurations": {}
592.            }
593.          },
594.          "indices_managed": 0
595.        },
596.        {
597.          "phases": {
598.            "hot": {
599.              "min_age": 0,
600.              "actions": [
601.                "rollover",
602.                "migrate"
603.              ],
604.              "configurations": {
605.                "rollover": {
606.                  "max_age": "3d",
607.                  "max_age_millis": 259200000,
608.                  "max_primary_shard_size": "50gb",
609.                  "max_primary_shard_size_bytes": 53687091200
610.                }
611.              }
612.            },
613.            "delete": {
614.              "min_age": 345600000,
615.              "actions": [
616.                "delete",
617.                "migrate"
618.              ],
619.              "configurations": {}
620.            }
621.          },
622.          "indices_managed": 0
623.        },
624.        {
625.          "phases": {
626.            "hot": {
627.              "min_age": 0,
628.              "actions": [
629.                "rollover",
630.                "migrate"
631.              ],
632.              "configurations": {
633.                "rollover": {
634.                  "max_age": "30d",
635.                  "max_age_millis": 2592000000,
636.                  "max_primary_shard_size": "50gb",
637.                  "max_primary_shard_size_bytes": 53687091200
638.                }
639.              }
640.            }
641.          },
642.          "indices_managed": 0
643.        },
644.        {
645.          "phases": {
646.            "hot": {
647.              "min_age": 0,
648.              "actions": [
649.                "rollover",
650.                "migrate"
651.              ],
652.              "configurations": {
653.                "rollover": {
654.                  "max_age": "30d",
655.                  "max_age_millis": 2592000000,
656.                  "max_size": "50gb",
657.                  "max_size_bytes": 53687091200
658.                }
659.              }
660.            },
661.            "delete": {
662.              "min_age": 7776000000,
663.              "actions": [
664.                "delete",
665.                "migrate"
666.              ],
667.              "configurations": {}
668.            }
669.          },
670.          "indices_managed": 1
671.        },
672.        {
673.          "phases": {
674.            "hot": {
675.              "min_age": 0,
676.              "actions": [
677.                "migrate"
678.              ],
679.              "configurations": {}
680.            }
681.          },
682.          "indices_managed": 0
683.        },
684.        {
685.          "phases": {
686.            "hot": {
687.              "min_age": 0,
688.              "actions": [
689.                "set_priority",
690.                "rollover",
691.                "migrate"
692.              ],
693.              "configurations": {
694.                "rollover": {
695.                  "max_age": "1d",
696.                  "max_age_millis": 86400000
697.                },
698.                "set_priority": {
699.                  "priority": 100
700.                }
701.              }
702.            },
703.            "delete": {
704.              "min_age": 1209600000,
705.              "actions": [
706.                "delete",
707.                "migrate"
708.              ],
709.              "configurations": {}
710.            }
711.          },
712.          "indices_managed": 0
713.        },
714.        {
715.          "phases": {
716.            "hot": {
717.              "min_age": 0,
718.              "actions": [
719.                "rollover",
720.                "migrate"
721.              ],
722.              "configurations": {
723.                "rollover": {
724.                  "max_age": "30d",
725.                  "max_age_millis": 2592000000,
726.                  "max_primary_shard_size": "50gb",
727.                  "max_primary_shard_size_bytes": 53687091200
728.                }
729.              }
730.            }
731.          },
732.          "indices_managed": 0
733.        },
734.        {
735.          "phases": {
736.            "warm": {
737.              "min_age": 0,
738.              "actions": [
739.                "forcemerge",
740.                "migrate"
741.              ],
742.              "configurations": {
743.                "forcemerge": {
744.                  "max_num_segments": 1
745.                }
746.              }
747.            },
748.            "hot": {
749.              "min_age": 0,
750.              "actions": [
751.                "rollover",
752.                "migrate"
753.              ],
754.              "configurations": {
755.                "rollover": {
756.                  "max_age": "3d",
757.                  "max_age_millis": 259200000,
758.                  "max_primary_shard_size": "50gb",
759.                  "max_primary_shard_size_bytes": 53687091200
760.                }
761.              }
762.            },
763.            "delete": {
764.              "min_age": 259200000,
765.              "actions": [
766.                "delete",
767.                "migrate"
768.              ],
769.              "configurations": {}
770.            }
771.          },
772.          "indices_managed": 2
773.        },
774.        {
775.          "phases": {
776.            "hot": {
777.              "min_age": 0,
778.              "actions": [
779.                "set_priority",
780.                "rollover",
781.                "migrate"
782.              ],
783.              "configurations": {
784.                "rollover": {
785.                  "max_age": "30d",
786.                  "max_age_millis": 2592000000,
787.                  "max_size": "50gb",
788.                  "max_size_bytes": 53687091200
789.                },
790.                "set_priority": {
791.                  "priority": 100
792.                }
793.              }
794.            },
795.            "delete": {
796.              "min_age": 31536000000,
797.              "actions": [
798.                "delete",
799.                "migrate"
800.              ],
801.              "configurations": {}
802.            }
803.          },
804.          "indices_managed": 0
805.        },
806.        {
807.          "phases": {
808.            "hot": {
809.              "min_age": 0,
810.              "actions": [
811.                "rollover",
812.                "migrate"
813.              ],
814.              "configurations": {
815.                "rollover": {
816.                  "max_age": "30d",
817.                  "max_age_millis": 2592000000,
818.                  "max_size": "300gb",
819.                  "max_size_bytes": 322122547200
820.                }
821.              }
822.            },
823.            "delete": {
824.              "min_age": 7776000000,
825.              "actions": [
826.                "delete",
827.                "migrate"
828.              ],
829.              "configurations": {}
830.            }
831.          },
832.          "indices_managed": 0
833.        },
834.        {
835.          "phases": {
836.            "warm": {
837.              "min_age": 172800000,
838.              "actions": [
839.                "shrink",
840.                "forcemerge",
841.                "migrate"
842.              ],
843.              "configurations": {
844.                "forcemerge": {
845.                  "max_num_segments": 1
846.                },
847.                "shrink": {
848.                  "number_of_shards": 1
849.                }
850.              }
851.            },
852.            "cold": {
853.              "min_age": 2592000000,
854.              "actions": [
855.                "migrate"
856.              ],
857.              "configurations": {}
858.            },
859.            "hot": {
860.              "min_age": 0,
861.              "actions": [
862.                "rollover",
863.                "migrate"
864.              ],
865.              "configurations": {
866.                "rollover": {
867.                  "max_age": "30d",
868.                  "max_age_millis": 2592000000,
869.                  "max_primary_shard_size": "50gb",
870.                  "max_primary_shard_size_bytes": 53687091200
871.                }
872.              }
873.            },
874.            "delete": {
875.              "min_age": 31536000000,
876.              "actions": [
877.                "delete",
878.                "migrate"
879.              ],
880.              "configurations": {}
881.            }
882.          },
883.          "indices_managed": 0
884.        },
885.        {
886.          "phases": {
887.            "warm": {
888.              "min_age": 172800000,
889.              "actions": [
890.                "shrink",
891.                "forcemerge",
892.                "migrate"
893.              ],
894.              "configurations": {
895.                "forcemerge": {
896.                  "max_num_segments": 1
897.                },
898.                "shrink": {
899.                  "number_of_shards": 1
900.                }
901.              }
902.            },
903.            "hot": {
904.              "min_age": 0,
905.              "actions": [
906.                "rollover",
907.                "migrate"
908.              ],
909.              "configurations": {
910.                "rollover": {
911.                  "max_age": "7d",
912.                  "max_age_millis": 604800000,
913.                  "max_primary_shard_size": "50gb",
914.                  "max_primary_shard_size_bytes": 53687091200
915.                }
916.              }
917.            },
918.            "delete": {
919.              "min_age": 604800000,
920.              "actions": [
921.                "delete",
922.                "migrate"
923.              ],
924.              "configurations": {}
925.            }
926.          },
927.          "indices_managed": 0
928.        },
929.        {
930.          "phases": {
931.            "hot": {
932.              "min_age": 0,
933.              "actions": [
934.                "rollover",
935.                "migrate"
936.              ],
937.              "configurations": {
938.                "rollover": {
939.                  "max_age": "30d",
940.                  "max_age_millis": 2592000000,
941.                  "max_primary_shard_size": "50gb",
942.                  "max_primary_shard_size_bytes": 53687091200
943.                }
944.              }
945.            }
946.          },
947.          "indices_managed": 0
948.        }
949.      ]
950.    },
951.    "logstash": {
952.      "available": false,
953.      "enabled": true
954.    },
955.    "ml": {
956.      "available": false,
957.      "enabled": true,
958.      "jobs": {
959.        "_all": {
960.          "count": 0,
961.          "detectors": {
962.            "total": 0,
963.            "min": 0,
964.            "avg": 0,
965.            "max": 0
966.          },
967.          "created_by": {},
968.          "model_size": {
969.            "total": 0,
970.            "min": 0,
971.            "avg": 0,
972.            "max": 0
973.          },
974.          "forecasts": {
975.            "total": 0,
976.            "forecasted_jobs": 0
977.          }
978.        }
979.      },
980.      "datafeeds": {
981.        "_all": {
982.          "count": 0
983.        }
984.      },
985.      "data_frame_analytics_jobs": {
986.        "memory_usage": {
987.          "peak_usage_bytes": {
988.            "total": 0,
989.            "min": 0,
990.            "avg": 0,
991.            "max": 0
992.          }
993.        },
994.        "_all": {
995.          "count": 0
996.        },
997.        "analysis_counts": {}
998.      },
999.      "inference": {
1000.        "ingest_processors": {
1001.          "_all": {
1002.            "pipelines": {
1003.              "count": 0
1004.            },
1005.            "time_ms": {
1006.              "sum": 0,
1007.              "min": 0,
1008.              "max": 0
1009.            },
1010.            "num_docs_processed": {
1011.              "sum": 0,
1012.              "min": 0,
1013.              "max": 0
1014.            },
1015.            "num_failures": {
1016.              "sum": 0,
1017.              "min": 0,
1018.              "max": 0
1019.            }
1020.          }
1021.        },
1022.        "trained_models": {
1023.          "model_size_bytes": {
1024.            "total": 0,
1025.            "min": 0,
1026.            "avg": 0,
1027.            "max": 0
1028.          },
1029.          "estimated_operations": {
1030.            "total": 0,
1031.            "min": 0,
1032.            "avg": 0,
1033.            "max": 0
1034.          },
1035.          "count": {
1036.            "total": 1,
1037.            "prepackaged": 1,
1038.            "other": 0
1039.          },
1040.          "_all": {
1041.            "count": 1
1042.          }
1043.        },
1044.        "deployments": {
1045.          "inference_counts": {
1046.            "total": 0,
1047.            "min": 0,
1048.            "avg": 0,
1049.            "max": 0
1050.          },
1051.          "model_sizes_bytes": {
1052.            "total": 0,
1053.            "min": 0,
1054.            "avg": 0,
1055.            "max": 0
1056.          },
1057.          "time_ms": {
1058.            "avg": 0
1059.          },
1060.          "count": 0
1061.        }
1062.      },
1063.      "node_count": 1
1064.    },
1065.    "monitoring": {
1066.      "available": true,
1067.      "enabled": true,
1068.      "collection_enabled": false,
1069.      "enabled_exporters": {
1070.        "local": 1
1071.      }
1072.    },
1073.    "rollup": {
1074.      "available": true,
1075.      "enabled": true
1076.    },
1077.    "searchable_snapshots": {
1078.      "available": false,
1079.      "enabled": true,
1080.      "indices_count": 0,
1081.      "full_copy_indices_count": 0,
1082.      "shared_cache_indices_count": 0
1083.    },
1084.    "security": {
1085.      "available": true,
1086.      "enabled": true,
1087.      "realms": {
1088.        "file": {
1089.          "name": [
1090.            "default_file"
1091.          ],
1092.          "available": true,
1093.          "cache": [
1094.            {
1095.              "size": 0
1096.            }
1097.          ],
1098.          "size": [
1099.            0
1100.          ],
1101.          "enabled": true,
1102.          "order": [
1103.            -2147483648
1104.          ]
1105.        },
1106.        "ldap": {
1107.          "available": false,
1108.          "enabled": false
1109.        },
1110.        "native": {
1111.          "name": [
1112.            "default_native"
1113.          ],
1114.          "available": true,
1115.          "cache": [
1116.            {
1117.              "size": 0
1118.            }
1119.          ],
1120.          "size": [
1121.            0
1122.          ],
1123.          "enabled": true,
1124.          "order": [
1125.            -2147483648
1126.          ]
1127.        },
1128.        "jwt": {
1129.          "available": false,
1130.          "enabled": false
1131.        },
1132.        "saml": {
1133.          "available": false,
1134.          "enabled": false
1135.        },
1136.        "kerberos": {
1137.          "available": false,
1138.          "enabled": false
1139.        },
1140.        "oidc": {
1141.          "available": false,
1142.          "enabled": false
1143.        },
1144.        "active_directory": {
1145.          "available": false,
1146.          "enabled": false
1147.        },
1148.        "pki": {
1149.          "available": false,
1150.          "enabled": false
1151.        }
1152.      },
1153.      "roles": {
1154.        "file": {
1155.          "dls": false,
1156.          "size": 0,
1157.          "fls": false
1158.        },
1159.        "native": {
1160.          "dls": false,
1161.          "size": 0,
1162.          "fls": false
1163.        },
1164.        "dls": {
1165.          "bit_set_cache": {
1166.            "memory_in_bytes": 0,
1167.            "memory": "0b",
1168.            "count": 0
1169.          }
1170.        }
1171.      },
1172.      "role_mapping": {
1173.        "native": {
1174.          "size": 0,
1175.          "enabled": 0
1176.        }
1177.      },
1178.      "ssl": {
1179.        "http": {
1180.          "enabled": true
1181.        },
1182.        "transport": {
1183.          "enabled": true
1184.        }
1185.      },
1186.      "token_service": {
1187.        "enabled": true
1188.      },
1189.      "api_key_service": {
1190.        "enabled": true
1191.      },
1192.      "audit": {
1193.        "enabled": false
1194.      },
1195.      "ipfilter": {
1196.        "http": false,
1197.        "transport": false
1198.      },
1199.      "anonymous": {
1200.        "enabled": false
1201.      },
1202.      "fips_140": {
1203.        "enabled": false
1204.      },
1205.      "operator_privileges": {
1206.        "enabled": false,
1207.        "available": false
1208.      }
1209.    },
1210.    "slm": {
1211.      "available": true,
1212.      "enabled": true
1213.    },
1214.    "spatial": {
1215.      "available": true,
1216.      "enabled": true
1217.    },
1218.    "sql": {
1219.      "available": true,
1220.      "enabled": true,
1221.      "features": {
1222.        "having": 0,
1223.        "subselect": 0,
1224.        "limit": 0,
1225.        "orderby": 0,
1226.        "where": 0,
1227.        "join": 0,
1228.        "groupby": 0,
1229.        "local": 0,
1230.        "command": 0
1231.      },
1232.      "queries": {
1233.        "cli": {
1234.          "total": 0,
1235.          "paging": 0,
1236.          "failed": 0
1237.        },
1238.        "rest": {
1239.          "total": 0,
1240.          "paging": 0,
1241.          "failed": 0
1242.        },
1243.        "canvas": {
1244.          "total": 0,
1245.          "paging": 0,
1246.          "failed": 0
1247.        },
1248.        "odbc": {
1249.          "total": 0,
1250.          "paging": 0,
1251.          "failed": 0
1252.        },
1253.        "jdbc": {
1254.          "total": 0,
1255.          "paging": 0,
1256.          "failed": 0
1257.        },
1258.        "odbc32": {
1259.          "total": 0,
1260.          "paging": 0,
1261.          "failed": 0
1262.        },
1263.        "odbc64": {
1264.          "total": 0,
1265.          "paging": 0,
1266.          "failed": 0
1267.        },
1268.        "translate": {
1269.          "count": 0
1270.        },
1271.        "_all": {
1272.          "total": 0,
1273.          "paging": 0,
1274.          "failed": 0
1275.        }
1276.      }
1277.    },
1278.    "transform": {
1279.      "available": true,
1280.      "enabled": true
1281.    },
1282.    "voting_only": {
1283.      "available": true,
1284.      "enabled": true
1285.    },
1286.    "watcher": {
1287.      "available": false,
1288.      "enabled": true,
1289.      "execution": {
1290.        "actions": {
1291.          "_all": {
1292.            "total": 0,
1293.            "total_time_in_ms": 0
1294.          }
1295.        }
1296.      },
1297.      "watch": {
1298.        "input": {
1299.          "_all": {
1300.            "total": 0,
1301.            "active": 0
1302.          }
1303.        },
1304.        "trigger": {
1305.          "_all": {
1306.            "total": 0,
1307.            "active": 0
1308.          }
1309.        }
1310.      },
1311.      "count": {
1312.        "total": 0,
1313.        "active": 0
1314.      }
1315.    },
1316.    "archive": {
1317.      "available": false,
1318.      "enabled": true,
1319.      "indices_count": 0
1320.    }
1321.  }

`![](https://csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreWhite.png)