{"id":41194,"date":"2023-03-14T01:41:07","date_gmt":"2023-11-16T21:49:37","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82\/"},"modified":"2024-04-29T18:46:09","modified_gmt":"2024-04-29T10:46:09","slug":"%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82\/","title":{"rendered":"\u4f7f\u7528Ansible\u5728CentOS 7.1\u4e0a\u6784\u5efaFluentd+Elasticsearch+Kibana4"},"content":{"rendered":"<p>\u6211\u5236\u4f5c\u4e86\u4e00\u4e2a\u4f7f\u7528Ansible Playbook\u5728CentOS 7.1 x86_64\u4e0a\u901a\u8fc7yum\u6784\u5efaFluentd+Elasticsearch+Kibana4\u7684\u811a\u672c\u3002<\/p>\n<ul class=\"post-ul\">https:\/\/github.com\/sadapon2008\/ansible-fluentd-elasticsearch-kibana4-centos7<\/ul>\n<h1>\u5efa\u6784<\/h1>\n<p>\u5047\u8bbeAnsible\u7684\u6e05\u5355\u6587\u4ef6\u5df2\u7ecf\u914d\u7f6e\u5b8c\u6210\u3002<\/p>\n<pre class=\"post-pre\"><code>$ sudo yum -y install git\r\n$ git clone https:\/\/github.com\/sadapon2008\/ansible-fluentd-elasticsearch-kibana4-centos7.git\r\n$ cd ansible-fluentd-elasticsearch-kibana4-centos7\r\n$ ansible-playbook site.yml\r\n<\/code><\/pre>\n<h1>\u901a\u8fc7Fluentd\u5c06\u786e\u8ba4\u7528\u7684\u865a\u62df\u6570\u636e\u8f93\u5165\u5230Elasticsearch\u3002<\/h1>\n<p>\u5728\u6784\u5efa\u7684\u4e3b\u673a\u4e0a\u8fdb\u884c\u6267\u884c\u3002<\/p>\n<pre class=\"post-pre\"><code>$ echo '{\"json\":\"message\"}' | \/opt\/td-agent\/embedded\/bin\/fluent-cat app.test\r\n<\/code><\/pre>\n<h1>\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95eeKibana4\u5e76\u786e\u8ba4\u3002<\/h1>\n<p>\u53ea\u9700\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u4ee5\u4e0b\u5730\u5740\uff0c\u5373\u53ef\u8bbf\u95eeKibana4\u3002<\/p>\n<ul class=\"post-ul\">http:\/\/(IP\u30a2\u30c9\u30ec\u30b9):5601<\/ul>\n<h1>\u6e05\u7a7aElasticsearch\u7684\u6240\u6709\u6570\u636e<\/h1>\n<p>\u5728\u6784\u5efa\u7684\u4e3b\u673a\u4e0a\u6267\u884c\u3002<\/p>\n<pre class=\"post-pre\"><code>$ curl -XDELETE 'http:\/\/localhost:9200\/*'\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u5236\u4f5c\u4e86\u4e00\u4e2a\u4f7f\u7528Ansible Playbook\u5728CentOS 7.1 x86_64\u4e0a\u901a\u8fc7yum\u6784\u5efaFluen [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-41194","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528Ansible\u5728CentOS 7.1\u4e0a\u6784\u5efaFluentd+Elasticsearch+Kibana4 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ansible\u5728centos-7-1\u4e0a\u6784\u5efafluentdelasticsearchkibana4\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Ansible\u5728CentOS 7.1\u4e0a\u6784\u5efaFluentd+Elasticsearch+Kibana4\" \/>\n<meta property=\"og:description\" content=\"\u6211\u5236\u4f5c\u4e86\u4e00\u4e2a\u4f7f\u7528Ansible Playbook\u5728CentOS 7.1 x86_64\u4e0a\u901a\u8fc7yum\u6784\u5efaFluen [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ansible\u5728centos-7-1\u4e0a\u6784\u5efafluentdelasticsearchkibana4\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-16T21:49:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T10:46:09+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u96c5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u96c5\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82\/\",\"name\":\"\u4f7f\u7528Ansible\u5728CentOS 7.1\u4e0a\u6784\u5efaFluentd+Elasticsearch+Kibana4 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-11-16T21:49:37+00:00\",\"dateModified\":\"2024-04-29T10:46:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Ansible\u5728CentOS 7.1\u4e0a\u6784\u5efaFluentd+Elasticsearch+Kibana4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\",\"name\":\"\u79d1, \u96c5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u96c5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Ansible\u5728CentOS 7.1\u4e0a\u6784\u5efaFluentd+Elasticsearch+Kibana4 - Blog - Silicon Cloud","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:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ansible\u5728centos-7-1\u4e0a\u6784\u5efafluentdelasticsearchkibana4\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Ansible\u5728CentOS 7.1\u4e0a\u6784\u5efaFluentd+Elasticsearch+Kibana4","og_description":"\u6211\u5236\u4f5c\u4e86\u4e00\u4e2a\u4f7f\u7528Ansible Playbook\u5728CentOS 7.1 x86_64\u4e0a\u901a\u8fc7yum\u6784\u5efaFluen [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ansible\u5728centos-7-1\u4e0a\u6784\u5efafluentdelasticsearchkibana4\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-16T21:49:37+00:00","article_modified_time":"2024-04-29T10:46:09+00:00","author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82\/","name":"\u4f7f\u7528Ansible\u5728CentOS 7.1\u4e0a\u6784\u5efaFluentd+Elasticsearch+Kibana4 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-11-16T21:49:37+00:00","dateModified":"2024-04-29T10:46:09+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Ansible\u5728CentOS 7.1\u4e0a\u6784\u5efaFluentd+Elasticsearch+Kibana4"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a","name":"\u79d1, \u96c5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","caption":"\u79d1, \u96c5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ansible%e5%9c%a8centos-7-1%e4%b8%8a%e6%9e%84%e5%bb%bafluentdelasticsearchkibana4%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=41194"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41194\/revisions"}],"predecessor-version":[{"id":86992,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41194\/revisions\/86992"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=41194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=41194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=41194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}