{"id":234,"date":"2019-03-12T09:27:53","date_gmt":"2019-03-12T01:27:53","guid":{"rendered":"https:\/\/linyuting.monsoons.fr\/?p=234"},"modified":"2021-03-26T02:59:56","modified_gmt":"2021-03-26T01:59:56","slug":"useful-elasticsearch-curl-scripts","status":"publish","type":"post","link":"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/","title":{"rendered":"Useful ElasticSearch Curl Scripts"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>\u4e4b\u524d\u5728\u8207 <a href=\"https:\/\/myoceane.fr\/index.php\/%e5%9d%87%e9%88%ba%e7%a7%91%e6%8a%80-hypro-%e5%90%88%e4%bd%9c%e6%a1%88\/\">Hypro \u516c\u53f8\u7684\u4e00\u500b\u5c08\u6848<\/a>\u88e1\u9762\u7528\u5230 ELK \u5f88\u591a\u7684\u6307\u4ee4\uff0c\u672c\u7bc7\u8a18\u9304\u4e00\u4e9b Useful ElasticSearch Curl Scripts \u7528\u4f86\u63a8\u9001 request \u7684\u7bc4\u4f8b\uff0c\u5305\u542b\uff1a<\/p>\n<ol>\n<li style=\"text-align: justify;\"><a href=\"https:\/\/myoceane.fr\/index.php\/elasticsearch-how-to-delete-an-event-through-elasticsearch-head\/\">\u522a\u9664\u7279\u5b9a\u4e8b\u4ef6 ( Delete specific event in a specific Index )<\/a><\/li>\n<li style=\"text-align: justify;\">\u67e5\u770b\u7d22\u5f15\u72c0\u614b ( Check Index Status )<\/li>\n<li style=\"text-align: justify;\">\u522a\u9664\u7279\u5b9a\u7d22\u5f15 ( Delete Specific Index )<\/li>\n<li style=\"text-align: justify;\">\u65b0\u589e\u8207\u66f4\u65b0\u5de5\u4f5c\u6d41 ( Create and Update pipeline )<\/li>\n<li style=\"text-align: justify;\">\u65b0\u589e\u7d22\u5f15 (New Index)<\/li>\n<li style=\"text-align: justify;\">\u63a8\u9001\u4e8b\u4ef6\u5230\u7279\u5b9a\u7684\u7d22\u5f15 (Insert a Json to Specific Index)<\/li>\n<\/ol>\n<p><strong>\u5099\u8a3b\uff1a<\/strong>\u4ee5\u4e0b\u7684\u7bc4\u4f8b\u90fd\u662f\u91dd\u5c0d http:\/\/ \u6c92\u6709 SSL \u7684 ElasticSearch \u4f3a\u670d\u5668\u505a\u63a8\u9001\uff0c\u5982\u679c\u4f60\u7684 ElasticSearch \u4f3a\u670d\u5668\u6709 SSL \u7684\u4fdd\u8b77\u6642\uff0c\u6703\u62ff\u5230\u4ee5\u4e0b\u7684\u932f\u8aa4\u8a0a\u606f\uff1a<\/p>\n<pre class=\"lang:bash\">curl: (52) Empty reply from server<\/pre>\n<p>\u6b64\u6642\u53ef\u4ee5\u5617\u8a66\u4ee5\u4e0b\u5169\u7a2e\u4e0d\u540c\u7684\u65b9\u6cd5\u589e\u52a0 argument \u4f86\u7b26\u5408 HTTPS \u7684\u8a8d\u8b49\u3002<\/p>\n<pre class=\"lang:bash\">curl --insecure\ncurl --cacert \/path\/to\/ca.crt<\/pre>\n<p>\u00a0<\/p>\n<h5>1. Delete specific event in a specific Index<\/h5>\n<pre class=\"lang:bash\">curl --user user:password -XPOST \"http:\/\/url\/index\/_delete_by_query\" -H 'Content-Type: application\/json' -d' \n{\n  \"query\": {\n    \"match\": {\n      \"_id\": \"AWlvdocu0pupZOgb9KkP\"\n    }\n  }\n}'<\/pre>\n<p>\u00a0<\/p>\n<h5>2. Check Index Status<\/h5>\n<pre class=\"lang:bash\">curl --user user:password -X GET \"http:\/\/url:port\/_cat\/indices?v\"\ncurl --user user:password -X GET \"http:\/\/url:port\/_cluster\/health\/test2\"<\/pre>\n<p>\u00a0<\/p>\n<h5>3. Delete Specific Index<\/h5>\n<pre class=\"lang:bash\">curl --user user:password -X DELETE \"http:\/\/url\/index\"<\/pre>\n<p>\u00a0<\/p>\n<h5>4. Create or Update pipeline <a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/ingest.html\">\u53c3\u8003<\/a><\/h5>\n<pre class=\"lang:bash\">curl --user user:password -X PUT \"http:\/\/59.120.61.14:9200\/_ingest\/pipeline\/timestamp\" -H 'Content-Type: application\/json' -d' \n{\n  \"description\": \"Adds a timestamp field at the current time\",\n  \"processors\": [\n    {\n      \"date\": {\n        \"field\": \"timestamp\",\n        \"formats\": [\n          \"dd-MM-yyyy HH:mm:ss\"\n        ],\n        \"timezone\": \"Asia\/Taipei\"\n      }\n    }\n  ]\n}'<\/pre>\n<p>\u00a0<\/p>\n<h5>5. New Index<\/h5>\n<pre class=\"lang:bash\">curl --user user:password -X PUT \"http:\/\/59.120.61.14:9200\/hypro\" -H 'Content-Type: application\/json' -d' \n{\n  \"settings\": {\n    \"index\": {\n      \"number_of_shards\": 5,\n      \"number_of_replicas\": 2\n    }\n  }\n}'<\/pre>\n<p>\u00a0<\/p>\n<h5>6. Insert a Json to a Specific Index<\/h5>\n<pre class=\"lang:bash\">curl --user user:password -XPOST \"http:\/\/59.120.61.14:9200\/test\/info?pipeline=timestamp\" -H 'Content-Type: application\/json' -d '\n{\n  \"temperature\": \"25.0\",\n  \"humidity\": \"20.0\",\n  \"timestamp\": \"21-04-2019 15:52:20\"\n}'<\/pre>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8a18\u9304\u4e00\u4e9b\u5229\u7528 curl \u63a8\u9001 request \u7684\u7bc4\u4f8b\uff0c\u5305\u542b\u522a\u9664\u7279\u5b9a\u4e8b\u4ef6 ( Delete specific event in a specific Index )\uff0c\u67e5\u770b\u7d22\u5f15\u72c0\u614b ( Check Index Status )\uff0c\u522a\u9664\u7279\u5b9a\u7d22\u5f15 ( Delete Specific Index )\uff0c\u65b0\u589e\u8207\u66f4\u65b0\u5de5\u4f5c\u6d41 ( Create and Update pipeline )\uff0c\u65b0\u589e\u7d22\u5f15 (New Index)\uff0c\u63a8\u9001\u4e8b\u4ef6\u5230\u7279\u5b9a\u7684\u7d22\u5f15 (Insert a Json to Specific Index)<\/p>\n","protected":false},"author":1,"featured_media":7472,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[692,514,693,691],"class_list":["post-234","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-elk","tag-curl","tag-elasticsearch","tag-index","tag-kibana"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Useful ElasticSearch Curl Scripts - \u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane<\/title>\n<meta name=\"description\" content=\"\u4e4b\u524d\u5728\u8207 Hypro \u516c\u53f8\u7684\u4e00\u500b\u5c08\u6848\u88e1\u9762\u7528\u5230 ELK \u5f88\u591a\u7684\u6307\u4ee4\uff0c\u672c\u7bc7\u8a18\u9304\u4e00\u4e9b Useful ElasticSearch Curl Scripts \u7528\u4f86\u63a8\u9001 request \u7684\u7bc4\u4f8b\uff0c\u5305\u542b\u522a\u9664\u7279\u5b9a\u4e8b\u4ef6 ( Delete specific event in a specific Index )\uff0c\u67e5\u770b\u7d22\u5f15\u72c0\u614b ( Check Index Status )\uff0c\u522a\u9664\u7279\u5b9a\u7d22\u5f15 ( Delete Specific Index )\uff0c\u65b0\u589e\u8207\u66f4\u65b0\u5de5\u4f5c\u6d41 ( Create and Update pipeline )\uff0c\u65b0\u589e\u7d22\u5f15 (New Index)\uff0c\u63a8\u9001\u4e8b\u4ef6\u5230\u7279\u5b9a\u7684\u7d22\u5f15 (Insert a Json to Specific Index)\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Useful ElasticSearch Curl Scripts - \u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane\" \/>\n<meta property=\"og:description\" content=\"\u4e4b\u524d\u5728\u8207 Hypro \u516c\u53f8\u7684\u4e00\u500b\u5c08\u6848\u88e1\u9762\u7528\u5230 ELK \u5f88\u591a\u7684\u6307\u4ee4\uff0c\u672c\u7bc7\u8a18\u9304\u4e00\u4e9b Useful ElasticSearch Curl Scripts \u7528\u4f86\u63a8\u9001 request \u7684\u7bc4\u4f8b\uff0c\u5305\u542b\u522a\u9664\u7279\u5b9a\u4e8b\u4ef6 ( Delete specific event in a specific Index )\uff0c\u67e5\u770b\u7d22\u5f15\u72c0\u614b ( Check Index Status )\uff0c\u522a\u9664\u7279\u5b9a\u7d22\u5f15 ( Delete Specific Index )\uff0c\u65b0\u589e\u8207\u66f4\u65b0\u5de5\u4f5c\u6d41 ( Create and Update pipeline )\uff0c\u65b0\u589e\u7d22\u5f15 (New Index)\uff0c\u63a8\u9001\u4e8b\u4ef6\u5230\u7279\u5b9a\u7684\u7d22\u5f15 (Insert a Json to Specific Index)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/\" \/>\n<meta property=\"og:site_name\" content=\"\u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-12T01:27:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-03-26T01:59:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/myoceane.fr\/wp-content\/uploads\/2019\/03\/elk.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u6ab8\u6aac\u7238\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6ab8\u6aac\u7238\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/\"},\"author\":{\"name\":\"\u6ab8\u6aac\u7238\",\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b\"},\"headline\":\"Useful ElasticSearch Curl Scripts\",\"datePublished\":\"2019-03-12T01:27:53+00:00\",\"dateModified\":\"2021-03-26T01:59:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/\"},\"wordCount\":69,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b\"},\"image\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/myoceane.fr\/wp-content\/uploads\/2019\/03\/elk.jpeg\",\"keywords\":[\"Curl\",\"ElasticSearch\",\"Index\",\"Kibana\"],\"articleSection\":[\"ElasticSearch\/Kibana\/Logstash\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/\",\"url\":\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/\",\"name\":\"Useful ElasticSearch Curl Scripts - \u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane\",\"isPartOf\":{\"@id\":\"https:\/\/myoceane.fr\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/myoceane.fr\/wp-content\/uploads\/2019\/03\/elk.jpeg\",\"datePublished\":\"2019-03-12T01:27:53+00:00\",\"dateModified\":\"2021-03-26T01:59:56+00:00\",\"description\":\"\u4e4b\u524d\u5728\u8207 Hypro \u516c\u53f8\u7684\u4e00\u500b\u5c08\u6848\u88e1\u9762\u7528\u5230 ELK \u5f88\u591a\u7684\u6307\u4ee4\uff0c\u672c\u7bc7\u8a18\u9304\u4e00\u4e9b Useful ElasticSearch Curl Scripts \u7528\u4f86\u63a8\u9001 request \u7684\u7bc4\u4f8b\uff0c\u5305\u542b\u522a\u9664\u7279\u5b9a\u4e8b\u4ef6 ( Delete specific event in a specific Index )\uff0c\u67e5\u770b\u7d22\u5f15\u72c0\u614b ( Check Index Status )\uff0c\u522a\u9664\u7279\u5b9a\u7d22\u5f15 ( Delete Specific Index )\uff0c\u65b0\u589e\u8207\u66f4\u65b0\u5de5\u4f5c\u6d41 ( Create and Update pipeline )\uff0c\u65b0\u589e\u7d22\u5f15 (New Index)\uff0c\u63a8\u9001\u4e8b\u4ef6\u5230\u7279\u5b9a\u7684\u7d22\u5f15 (Insert a Json to Specific Index)\",\"breadcrumb\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#primaryimage\",\"url\":\"https:\/\/myoceane.fr\/wp-content\/uploads\/2019\/03\/elk.jpeg\",\"contentUrl\":\"https:\/\/myoceane.fr\/wp-content\/uploads\/2019\/03\/elk.jpeg\",\"width\":1024,\"height\":576,\"caption\":\"elk\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/myoceane.fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Useful ElasticSearch Curl Scripts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/myoceane.fr\/#website\",\"url\":\"https:\/\/myoceane.fr\/\",\"name\":\"M-Y-Oceane \u60f3\u65b9\u6d89\u6cd5\u3002\u91cf\u74f6\u5916\u7684\u5929\u7a7a\",\"description\":\"\u60f3\u65b9\u6d89\u6cd5, France, Taiwan, Health, Information Technology\",\"publisher\":{\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/myoceane.fr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b\",\"name\":\"\u6ab8\u6aac\u7238\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6cc678684664f8ad45a8d56a6630b183?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6cc678684664f8ad45a8d56a6630b183?s=96&d=mm&r=g\",\"caption\":\"\u6ab8\u6aac\u7238\"},\"logo\":{\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/myoceane.fr\/index.php\/author\/johnny5584767gmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Useful ElasticSearch Curl Scripts - \u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane","description":"\u4e4b\u524d\u5728\u8207 Hypro \u516c\u53f8\u7684\u4e00\u500b\u5c08\u6848\u88e1\u9762\u7528\u5230 ELK \u5f88\u591a\u7684\u6307\u4ee4\uff0c\u672c\u7bc7\u8a18\u9304\u4e00\u4e9b Useful ElasticSearch Curl Scripts \u7528\u4f86\u63a8\u9001 request \u7684\u7bc4\u4f8b\uff0c\u5305\u542b\u522a\u9664\u7279\u5b9a\u4e8b\u4ef6 ( Delete specific event in a specific Index )\uff0c\u67e5\u770b\u7d22\u5f15\u72c0\u614b ( Check Index Status )\uff0c\u522a\u9664\u7279\u5b9a\u7d22\u5f15 ( Delete Specific Index )\uff0c\u65b0\u589e\u8207\u66f4\u65b0\u5de5\u4f5c\u6d41 ( Create and Update pipeline )\uff0c\u65b0\u589e\u7d22\u5f15 (New Index)\uff0c\u63a8\u9001\u4e8b\u4ef6\u5230\u7279\u5b9a\u7684\u7d22\u5f15 (Insert a Json to Specific Index)","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/","og_locale":"en_US","og_type":"article","og_title":"Useful ElasticSearch Curl Scripts - \u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane","og_description":"\u4e4b\u524d\u5728\u8207 Hypro \u516c\u53f8\u7684\u4e00\u500b\u5c08\u6848\u88e1\u9762\u7528\u5230 ELK \u5f88\u591a\u7684\u6307\u4ee4\uff0c\u672c\u7bc7\u8a18\u9304\u4e00\u4e9b Useful ElasticSearch Curl Scripts \u7528\u4f86\u63a8\u9001 request \u7684\u7bc4\u4f8b\uff0c\u5305\u542b\u522a\u9664\u7279\u5b9a\u4e8b\u4ef6 ( Delete specific event in a specific Index )\uff0c\u67e5\u770b\u7d22\u5f15\u72c0\u614b ( Check Index Status )\uff0c\u522a\u9664\u7279\u5b9a\u7d22\u5f15 ( Delete Specific Index )\uff0c\u65b0\u589e\u8207\u66f4\u65b0\u5de5\u4f5c\u6d41 ( Create and Update pipeline )\uff0c\u65b0\u589e\u7d22\u5f15 (New Index)\uff0c\u63a8\u9001\u4e8b\u4ef6\u5230\u7279\u5b9a\u7684\u7d22\u5f15 (Insert a Json to Specific Index)","og_url":"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/","og_site_name":"\u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane","article_published_time":"2019-03-12T01:27:53+00:00","article_modified_time":"2021-03-26T01:59:56+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/myoceane.fr\/wp-content\/uploads\/2019\/03\/elk.jpeg","type":"image\/jpeg"}],"author":"\u6ab8\u6aac\u7238","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u6ab8\u6aac\u7238","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#article","isPartOf":{"@id":"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/"},"author":{"name":"\u6ab8\u6aac\u7238","@id":"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b"},"headline":"Useful ElasticSearch Curl Scripts","datePublished":"2019-03-12T01:27:53+00:00","dateModified":"2021-03-26T01:59:56+00:00","mainEntityOfPage":{"@id":"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/"},"wordCount":69,"commentCount":2,"publisher":{"@id":"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b"},"image":{"@id":"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#primaryimage"},"thumbnailUrl":"https:\/\/myoceane.fr\/wp-content\/uploads\/2019\/03\/elk.jpeg","keywords":["Curl","ElasticSearch","Index","Kibana"],"articleSection":["ElasticSearch\/Kibana\/Logstash"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/","url":"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/","name":"Useful ElasticSearch Curl Scripts - \u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane","isPartOf":{"@id":"https:\/\/myoceane.fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#primaryimage"},"image":{"@id":"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#primaryimage"},"thumbnailUrl":"https:\/\/myoceane.fr\/wp-content\/uploads\/2019\/03\/elk.jpeg","datePublished":"2019-03-12T01:27:53+00:00","dateModified":"2021-03-26T01:59:56+00:00","description":"\u4e4b\u524d\u5728\u8207 Hypro \u516c\u53f8\u7684\u4e00\u500b\u5c08\u6848\u88e1\u9762\u7528\u5230 ELK \u5f88\u591a\u7684\u6307\u4ee4\uff0c\u672c\u7bc7\u8a18\u9304\u4e00\u4e9b Useful ElasticSearch Curl Scripts \u7528\u4f86\u63a8\u9001 request \u7684\u7bc4\u4f8b\uff0c\u5305\u542b\u522a\u9664\u7279\u5b9a\u4e8b\u4ef6 ( Delete specific event in a specific Index )\uff0c\u67e5\u770b\u7d22\u5f15\u72c0\u614b ( Check Index Status )\uff0c\u522a\u9664\u7279\u5b9a\u7d22\u5f15 ( Delete Specific Index )\uff0c\u65b0\u589e\u8207\u66f4\u65b0\u5de5\u4f5c\u6d41 ( Create and Update pipeline )\uff0c\u65b0\u589e\u7d22\u5f15 (New Index)\uff0c\u63a8\u9001\u4e8b\u4ef6\u5230\u7279\u5b9a\u7684\u7d22\u5f15 (Insert a Json to Specific Index)","breadcrumb":{"@id":"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#primaryimage","url":"https:\/\/myoceane.fr\/wp-content\/uploads\/2019\/03\/elk.jpeg","contentUrl":"https:\/\/myoceane.fr\/wp-content\/uploads\/2019\/03\/elk.jpeg","width":1024,"height":576,"caption":"elk"},{"@type":"BreadcrumbList","@id":"https:\/\/myoceane.fr\/index.php\/useful-elasticsearch-curl-scripts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/myoceane.fr\/"},{"@type":"ListItem","position":2,"name":"Useful ElasticSearch Curl Scripts"}]},{"@type":"WebSite","@id":"https:\/\/myoceane.fr\/#website","url":"https:\/\/myoceane.fr\/","name":"M-Y-Oceane \u60f3\u65b9\u6d89\u6cd5\u3002\u91cf\u74f6\u5916\u7684\u5929\u7a7a","description":"\u60f3\u65b9\u6d89\u6cd5, France, Taiwan, Health, Information Technology","publisher":{"@id":"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/myoceane.fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b","name":"\u6ab8\u6aac\u7238","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/myoceane.fr\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6cc678684664f8ad45a8d56a6630b183?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6cc678684664f8ad45a8d56a6630b183?s=96&d=mm&r=g","caption":"\u6ab8\u6aac\u7238"},"logo":{"@id":"https:\/\/myoceane.fr\/#\/schema\/person\/image\/"},"url":"https:\/\/myoceane.fr\/index.php\/author\/johnny5584767gmail-com\/"}]}},"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/posts\/234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/comments?post=234"}],"version-history":[{"count":29,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/posts\/234\/revisions"}],"predecessor-version":[{"id":7480,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/posts\/234\/revisions\/7480"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/media\/7472"}],"wp:attachment":[{"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/media?parent=234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/categories?post=234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/tags?post=234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}