{"id":876,"date":"2025-08-14T13:26:58","date_gmt":"2025-08-14T04:26:58","guid":{"rendered":"http:\/\/wp.ssunmini.com\/?page_id=876"},"modified":"2026-06-25T14:48:20","modified_gmt":"2026-06-25T05:48:20","slug":"jenkins","status":"publish","type":"page","link":"https:\/\/wp.ssunmini.com\/?page_id=876","title":{"rendered":"Monitoring \/ Logging"},"content":{"rendered":"\n<div class=\"wp-block-esab-accordion esab-y6y1c4vy\" data-mode=\"individual\" data-close=\"true\"><div class=\"esab__container\">\n<div class=\"wp-block-esab-accordion-child\"><div class=\"esab__head\" role=\"button\" aria-expanded=\"false\"><div class=\"esab__heading_txt\"><p class=\"esab__heading_tag\">Prometheus + Grafana<\/p><\/div><div class=\"esab__icon\"><div class=\"esab__collapse\"> <svg version=\"1.2\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path fill-rule=\"evenodd\" d=\"m3.5 20.5c-4.7-4.7-4.7-12.3 0-17 4.7-4.7 12.3-4.7 17 0 4.6 4.7 4.6 12.3 0 17-4.7 4.6-12.3 4.6-17 0zm0.9-0.9c4.2 4.2 11 4.2 15.2 0 4.2-4.2 4.2-11 0-15.2-4.2-4.3-11-4.3-15.2 0-4.3 4.2-4.3 11 0 15.2z\"><\/path><path d=\"m11.4 15.9v-3.3h-3.3c-0.3 0-0.6-0.3-0.6-0.6 0-0.4 0.3-0.6 0.6-0.6h3.3v-3.3c0-0.3 0.3-0.6 0.6-0.6 0.3 0 0.6 0.3 0.6 0.6v3.3h3.3c0.3 0 0.6 0.2 0.6 0.6q0 0.2-0.2 0.4-0.2 0.2-0.4 0.2h-3.3v3.3q0 0.2-0.2 0.4-0.2 0.2-0.4 0.2c-0.4 0-0.6-0.3-0.6-0.6z\"><\/path><\/svg> <\/div><div class=\"esab__expand\"> <svg version=\"1.2\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path fill-rule=\"evenodd\" d=\"m12 24c-6.6 0-12-5.4-12-12 0-6.6 5.4-12 12-12 6.6 0 12 5.4 12 12 0 6.6-5.4 12-12 12zm10.6-12c0-5.9-4.7-10.6-10.6-10.6-5.9 0-10.6 4.7-10.6 10.6 0 5.9 4.7 10.6 10.6 10.6 5.9 0 10.6-4.7 10.6-10.6z\"><\/path><path d=\"m5.6 11.3h12.8v1.4h-12.8z\"><\/path><\/svg> <\/div><\/div><\/div><div class=\"esab__body\">\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#0693e3\" class=\"has-inline-color\">Prometheus\ub294 \uc624\ud508\uc18c\uc2a4 \ubaa8\ub2c8\ud130\ub9c1 \ubc0f \uacbd\uace0 \uc2dc\uc2a4\ud15c\uc73c\ub85c, \uba54\ud2b8\ub9ad \uc218\uc9d1\uacfc \uc800\uc7a5\uc744 \ub2f4\ub2f9\ud558\uace0, \uc8fc\ub85c \uc2dc\uac04 \uae30\ubc18 \ub370\uc774\ud130(\uc608: CPU \uc0ac\uc6a9\ub960, \uba54\ubaa8\ub9ac \uc0ac\uc6a9\ub7c9 \ub4f1)\ub97c \uc218\uc9d1\ud558\uc5ec \ubd84\uc11d<\/mark><\/strong><\/p>\n\n\n\n<p class=\"has-vivid-cyan-blue-color has-text-color has-link-color wp-elements-1 wp-block-paragraph\"><strong>Grafana\ub294 \uc2dc\uac01\ud654 \ubc0f \ub300\uc2dc\ubcf4\ub4dc \ub3c4\uad6c\ub85c, Prometheus\uc640 \uac19\uc740 \ub370\uc774\ud130 \uc18c\uc2a4\uc5d0\uc11c \ub370\uc774\ud130\ub97c \uac00\uc838\uc640 \uc2dc\uac01\ud654<\/strong> <strong>\uac00\ub2a5<\/strong><\/p>\n\n\n\n<p class=\"has-vivid-cyan-blue-color has-text-color has-link-color wp-elements-2 wp-block-paragraph\"><strong>Prometheus\ub85c \ub370\uc774\ud130\ub97c \uc218\uc9d1\ud558\uace0, Grafana\ub85c \uadf8 \ub370\uc774\ud130\ub97c \uc2dc\uac01\ud654\ud558\ub294 \uac83\uc774 \uc77c\ubc18\uc801\uc774\uace0, \uc608\ub97c \ub4e4\uc5b4 \uc11c\ubc84\uc758 CPU \uc0ac\uc6a9\ub7c9\uc744 Prometheus\uac00 \uc218\uc9d1\ud55c \ud6c4, Grafana\uc5d0\uc11c \uadf8 \ub370\uc774\ud130\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \uadf8\ub798\ud504 \ud615\ud0dc\ub85c \ubcf4\uc5ec\uc90c\uc73c\ub85c\uc368 \uc2dc\uc2a4\ud15c\uc758 \uc0c1\ud0dc\ub97c \ud55c\ub208\uc5d0 \ud30c\uc545\uc774 \uac00\ub2a5<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Rocky 9.4<\/li>\n\n\n\n<li>192.168.0.23<\/li>\n\n\n\n<li>port \/ 3000, 9100, 9090<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>prometheus \/ node_exporter \ub2e4\uc6b4\ub85c\ub4dc (node_exporter \ubaa8\ub2c8\ud130\ub9c1 \ud560 \ub300\uc0c1 \uc11c\ubc84\ub3c4 \ub2e4\uc6b4\ub85c\ub4dc)<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># prometheus\nwget https:\/\/github.com\/prometheus\/prometheus\/releases\/download\/v2.48.0-rc.0\/prometheus-2.48.0-rc.0.linux-amd64.tar.gz\n\n# node_exporter\nwget https:\/\/github.com\/prometheus\/node_exporter\/releases\/download\/v1.6.1\/node_exporter-1.6.1.linux-amd64.tar.gz<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>prometheus \/ node_exporter \ub2e4\uc6b4\ub85c\ub4dc \uc8fc\uc18c\n<ul class=\"wp-block-list\">\n<li>prometheus.io\/download<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"861\" height=\"818\" src=\"https:\/\/wp.ssunmini.com\/wp-content\/uploads\/2024\/11\/69F8D77C-ED55-4827-AD64-10C43CCA534E.png\" alt=\"\" class=\"wp-image-653\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ub2e4\uc6b4\ub85c\ub4dc \ud30c\uc77c \uc555\ucd95\ud574\uc81c<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>tar -zxvf<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>prometheus.yml \ucd94\uac00(prometheus \uc11c\ubc84\ub9cc \ud574\ub2f9)\n<ul class=\"wp-block-list\">\n<li>yaml \ud30c\uc77c\uc740 \ub4e4\uc5ec\uc4f0\uae30 \uc8fc\uc758<\/li>\n\n\n\n<li>targets \ubaa8\ub2c8\ud130\ub9c1 \ub300\uc0c1 ip \uae30\uc785<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># Alertmanager configuration\nalerting:\n  alertmanagers:\n    - static_configs:\n        - targets:\n          # - alertmanager:9093\n\n# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.\nrule_files:\n  # - \"first_rules.yml\"\n  # - \"second_rules.yml\"\n\n# A scrape configuration containing exactly one endpoint to scrape:\n# Here it's Prometheus itself.\nscrape_configs:\n  # The job name is added as a label `job=&lt;job_name&gt;` to any timeseries scraped from this config.\n  - job_name: \"prometheus\"\n\n    # metrics_path defaults to '\/metrics'\n    # scheme defaults to 'http'.\n\n    static_configs:\n      - targets: &#91;\"localhost:9090\"]\n\n  - job_name: \"node\"\n\n    static_configs:\n      - targets: &#91;\"192.168.0.23:9100\", \"192.168.0.22:9100\", \"192.168.0.24:9100\"]\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ubc29\ud654\ubcbd port \ucd94\uac00 \n<ul class=\"wp-block-list\">\n<li>firewalld \uc0ac\uc6a9<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># \ud3ec\ud2b8 \ucd94\uac00\nfirewall-cmd --permanent --add-port=9100\/tcp\n\n# \uc7ac\uc2dc\uc791\nfirewall-cmd --reload\n\n# \ud3ec\ud2b8 \ucd94\uac00 \uc801\uc6a9 \ub418\uc5c8\ub294\uc9c0 \ud655\uc778\nfirewall-cmd --list-all<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>prometheus \uc11c\ube44\uc2a4 \uc2dc\uc2a4\ud15c \ub4f1\ub85d(prometheus \uc11c\ubc84\ub9cc \ud574\ub2f9)<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/systemd\/system\/prometheus.service   # \ud30c\uc77c \uc0dd\uc131\n\n\n\n&#91;Unit]\nDescription=Prometheus Server\nDocumentation=https:\/\/prometheus.io\/docs\/introduction\/overview\/\nAfter=network-online.target\n\n\n&#91;Service]\nUser=root\nRestart=on-failure\nExecStart=\/home\/moni\/prometheus-2.48.0-rc.0.linux-amd64\/prometheus \\\n  --config.file=\/home\/moni\/prometheus-2.48.0-rc.0.linux-amd64\/prometheus.yml \\\n  --storage.tsdb.path=\/home\/moni\/prometheus-2.48.0-rc.0.linux-amd64\/data\n\n\n&#91;Install]\nWantedBy=multi-user.target\n\n\n# \uc11c\ube44\uc2a4 \uc7ac\uae30\ub3d9\nsystemctl daemon-reload\nsystemctl start prometheus\nsystemctl status prometheus\nsystemctl enable prometheus<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>node_export \uc11c\ube44\uc2a4 \ub4f1\ub85d(prometheus \uc11c\ubc84\uc640 \ubaa8\ub2c8\ud130\ub9c1 \ub300\uc0c1 \uc11c\ubc84 \uc124\uce58)<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/systemd\/system\/node_exporter.service\n\n\n&#91;Unit]\nDescription=Prometheus Node Exporter\nDocumentation=https:\/\/prometheus.io\/docs\/guides\/node-exporter\/\nWants=network-online.target\nAfter=network-online.target\n\n\n&#91;Service]\nUser=root\nRestart=on-failure\nExecStart=\/home\/moni\/node_exporter-1.6.1.linux-amd64\/node_exporter\n\n\n&#91;Install]\nWantedBy=multi-user.target\n\n\n# \uc11c\ube44\uc2a4 \uc7ac\uae30\ub3d9\nsystemctl daemon-reload\nsystemctl start prometheus\nsystemctl status prometheus\nsystemctl enable prometheus<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ubaa8\ub2c8\ud130\ub9c1 \ub300\uc0c1 \uc11c\ubc84 \ubc29\ud654\ubcbd \uc124\uc815<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># \ud3ec\ud2b8 \ucd94\uac00\nfirewall-cmd --permanent --add-port=9100\/tcp\n\n# \uc7ac\uc2dc\uc791\nfirewall-cmd --reload\n\n# \ud3ec\ud2b8 \ucd94\uac00 \uc801\uc6a9 \ub418\uc5c8\ub294\uc9c0 \ud655\uc778\nfirewall-cmd --list-all<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ud14c\uc2a4\ud2b8 9090 \uc811\uc18d<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;192.168.0.23:9090<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Grafana \uc5f0\ub3d9(prometheus \uc11c\ubc84\uc5d0 \uc124\uce58)<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum install -y https:\/\/dl.grafana.com\/enterprise\/release\/grafana-enterprise-10.3.3-1.x86_64.rpm\n\n\nwget https:\/\/dl.grafana.com\/enterprise\/release\/grafana-enterprise-8.4.4-1.x86_64.rpm\n\nsudo yum install -y grafana-enterprise-8.4.4-1.x86_64.rpm <\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>grafana \ub2e4\uc6b4\ub85c\ub4dc \uc6f9 \uc8fc\uc18c\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/grafana.com\/grafana\/download\">https:\/\/grafana.com\/grafana\/download<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"865\" height=\"961\" src=\"https:\/\/wp.ssunmini.com\/wp-content\/uploads\/2024\/11\/FC1E01D4-4807-4A6B-A845-FB57FC718247.png\" alt=\"\" class=\"wp-image-655\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>grafana \uae30\ub3d9<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl start grafana-server\n\nsystemctl enable grafana-server<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>grafana \uc6f9 \uc811\uc18d<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;192.168.0.23:3000\n\n# \ucd08\uae30 \uacc4\uc815 \uc815\ubcf4\nadmin \/ admin<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"875\" height=\"387\" src=\"https:\/\/wp.ssunmini.com\/wp-content\/uploads\/2024\/11\/AD52F942-C67C-4F5B-84AC-F9AC61181D4B.png\" alt=\"\" class=\"wp-image-656\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-esab-accordion-child\"><div class=\"esab__head\" role=\"button\" aria-expanded=\"false\"><div class=\"esab__heading_txt\"><p class=\"esab__heading_tag\">ELK Stack \uc124\uce58<\/p><\/div><div class=\"esab__icon\"><div class=\"esab__collapse\"> <svg version=\"1.2\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path fill-rule=\"evenodd\" d=\"m3.5 20.5c-4.7-4.7-4.7-12.3 0-17 4.7-4.7 12.3-4.7 17 0 4.6 4.7 4.6 12.3 0 17-4.7 4.6-12.3 4.6-17 0zm0.9-0.9c4.2 4.2 11 4.2 15.2 0 4.2-4.2 4.2-11 0-15.2-4.2-4.3-11-4.3-15.2 0-4.3 4.2-4.3 11 0 15.2z\"><\/path><path d=\"m11.4 15.9v-3.3h-3.3c-0.3 0-0.6-0.3-0.6-0.6 0-0.4 0.3-0.6 0.6-0.6h3.3v-3.3c0-0.3 0.3-0.6 0.6-0.6 0.3 0 0.6 0.3 0.6 0.6v3.3h3.3c0.3 0 0.6 0.2 0.6 0.6q0 0.2-0.2 0.4-0.2 0.2-0.4 0.2h-3.3v3.3q0 0.2-0.2 0.4-0.2 0.2-0.4 0.2c-0.4 0-0.6-0.3-0.6-0.6z\"><\/path><\/svg> <\/div><div class=\"esab__expand\"> <svg version=\"1.2\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path fill-rule=\"evenodd\" d=\"m12 24c-6.6 0-12-5.4-12-12 0-6.6 5.4-12 12-12 6.6 0 12 5.4 12 12 0 6.6-5.4 12-12 12zm10.6-12c0-5.9-4.7-10.6-10.6-10.6-5.9 0-10.6 4.7-10.6 10.6 0 5.9 4.7 10.6 10.6 10.6 5.9 0 10.6-4.7 10.6-10.6z\"><\/path><path d=\"m5.6 11.3h12.8v1.4h-12.8z\"><\/path><\/svg> <\/div><\/div><\/div><div class=\"esab__body\">\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#0693e3\" class=\"has-inline-color\">ELK \uc2a4\ud0dd\uc740 \uc11c\ubc84\uc758 \ub85c\uadf8\ub97c \uc218\uc9d1\ud558\uace0 \ubd84\uc11d\ud558\ub294 \ub370 \uc720\uc6a9\ud558\uace0, Elasticesearch\ub294 \ub370\uc774\ud130 \uc800\uc7a5\uc18c, Logstash\ub294 \ub85c\uadf8 \uc218\uc9d1 \ubc0f \ucc98\ub9ac, Kibana\ub294 \uc2dc\uac01\ud654 \ub3c4\uad6c<\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Rocky 9.4<\/li>\n\n\n\n<li>master \/ 192.168.0.22 (\uad00\ub9ac \uc11c\ubc84)<\/li>\n\n\n\n<li>node1 \/ 192.168.0.23<\/li>\n\n\n\n<li>node2 \/ 192.168.0.24<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ub808\ud3ec\uc9c0\ud1a0\ub9ac \ucd94\uac00\n<ul class=\"wp-block-list\">\n<li>master, node1\/2 \uc11c\ubc84 \uc9c4\ud589<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rpm --import https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch\nsudo tee \/etc\/yum.repos.d\/elasticsearch.repo &lt;&lt;EOF\n&#91;elasticsearch]\nname=Elasticsearch repository\nbaseurl=https:\/\/artifacts.elastic.co\/packages\/7.x\/yum\ngpgcheck=1\ngpgkey=https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch\nenabled=1\nautorefresh=1\ntype=rpm-md\nEOF<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Elaticsearch \uc124\uce58\n<ul class=\"wp-block-list\">\n<li>master, node1\/2 \uc11c\ubc84 \uc9c4\ud589<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf -y install elasticsearch<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Elasticsearch \uc124\uc815\n<ul class=\"wp-block-list\">\n<li>master \uc11c\ubc84\uc5d0\uc11c \uc9c4\ud589<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/elasticsearch\/elasticsearch.yml\n\n\ncluster.name: my-cluster\nnode.name: master\nnetwork.host: 192.168.0.22\nhttp.port: 9200\ndiscovery.seed_hosts: &#91;\"192.168.0.22\", \"192.168.0.23\", \"192.168.0.24\"]\ncluster.initial_master_nodes: &#91;\"master\"]<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>node1 \uc11c\ubc84\uc5d0\uc11c \uc9c4\ud589<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/elasticsearch\/elasticsearch.yml\n\n\ncluster.name: my-cluster\nnode.name: node1\nnetwork.host: 192.168.0.23\nhttp.port: 9200\ndiscovery.seed_hosts: &#91;\"192.168.0.22\", \"192.168.0.23\", \"192.168.0.24\"]\ncluster.initial_master_nodes: &#91;\"master\"]<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>node2 \uc11c\ubc84\uc5d0\uc11c \uc9c4\ud589<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/elasticsearch\/elasticsearch.yml\n\n\ncluster.name: my-cluster\nnode.name: node2\nnetwork.host: 192.168.0.24\nhttp.port: 9200\ndiscovery.seed_hosts: &#91;\"192.168.0.22\", \"192.168.0.23\", \"192.168.0.24\"]\ncluster.initial_master_nodes: &#91;\"master\"]<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\uc11c\ube44\uc2a4 \uc2dc\uc791<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl enable elasticsearch --now<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\uc0c1\ud0dc \ud655\uc778<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -X GET \"192.168.0.22:9200\/\"\n\ncurl -X GET \"http:\/\/192.168.0.22:9200\/_cluster\/health\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Logstash \uc124\uce58]<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ub9c8\uc2a4\ud130 \uc11c\ubc84\uc5d0\uc11c \uc9c4\ud589<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf -y install logstash<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Logstash \uad6c\uc131 \ud30c\uc77c \uc0dd\uc131<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>input {\n  beats {\n    port =&gt; 5044\n  }\n}\n\nfilter {\n  # \ud544\uc694\ud55c \uacbd\uc6b0 \ub370\uc774\ud130 \ud544\ud130\ub9c1 \ubc0f \ubcc0\ud658\uc744 \ucd94\uac00\n}\n\noutput {\n  elasticsearch {\n    hosts =&gt; &#91;\"http:\/\/192.168.0.22:9200\"]\n    index =&gt; \"your-index-name-%{+YYYY.MM.dd}\"\n  }\n}<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\uc11c\ube44\uc2a4 \uc2dc\uc791 \ubc0f \uc790\ub3d9 \uc2e4\ud589<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl enable logstash --now<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\uc0c1\ud0dc \ud655\uc778<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -X GET \"http:\/\/192.168.0.22:9200\/_cat\/indices?v\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Kibana \uc124\uce58]<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ub9c8\uc2a4\ud130 \uc11c\ubc84\uc5d0\uc11c \uc9c4\ud589<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf -y install kibana<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>kibana \uc124\uc815<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/kibana\/kibana.yml\n\n\nserver.port: 5601\nserver.host: \"0.0.0.0\"\nelasticsearch.hosts: &#91;\"http:\/\/192.168.0.22:9200\"]<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\uc11c\ube44\uc2a4 \uc2dc\uc791 \ubc0f \uc790\ub3d9 \uc2e4\ud589<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl enable kibana --now<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\uc6f9 \uc778\ud130\ud398\uc774\uc2a4\n<ul class=\"wp-block-list\">\n<li>http:\/\/192.168.0.22:5601<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1983\" height=\"1175\" src=\"https:\/\/wp.ssunmini.com\/wp-content\/uploads\/2024\/11\/image-2-1.png\" alt=\"\" class=\"wp-image-648\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1656\" height=\"984\" src=\"https:\/\/wp.ssunmini.com\/wp-content\/uploads\/2024\/11\/image-3.png\" alt=\"\" class=\"wp-image-649\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div><\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":10,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-876","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wp.ssunmini.com\/index.php?rest_route=\/wp\/v2\/pages\/876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.ssunmini.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wp.ssunmini.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wp.ssunmini.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.ssunmini.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=876"}],"version-history":[{"count":5,"href":"https:\/\/wp.ssunmini.com\/index.php?rest_route=\/wp\/v2\/pages\/876\/revisions"}],"predecessor-version":[{"id":1206,"href":"https:\/\/wp.ssunmini.com\/index.php?rest_route=\/wp\/v2\/pages\/876\/revisions\/1206"}],"wp:attachment":[{"href":"https:\/\/wp.ssunmini.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}