{"id":2425,"date":"2024-10-31T17:45:47","date_gmt":"2024-10-31T08:45:47","guid":{"rendered":"http:\/\/blog.moramcnt.com\/?p=2425"},"modified":"2024-10-31T17:45:47","modified_gmt":"2024-10-31T08:45:47","slug":"elastic-search-%eb%b3%b4%ec%95%88%ec%84%a4%ec%a0%95","status":"publish","type":"post","link":"http:\/\/blog.moramcnt.com\/?p=2425","title":{"rendered":"Elastic Search \ubcf4\uc548\uc124\uc815"},"content":{"rendered":"<div style=\"direction: ltr; border-width: 100%;\">\n<div style=\"direction: ltr; margin-top: 0in; margin-left: 0in; width: 6.6694in;\">\n<div style=\"direction: ltr; margin-top: 0in; margin-left: 0in; width: 6.6694in;\">\n<p><strong><span style=\"font-family: 'Malgun Gothic'; font-size: 11pt; font-style: normal;\">I. \ubaa9\ud45c<\/span><\/strong><\/p>\n<p style=\"margin: 0in; font-family: 'Malgun Gothic'; font-size: 11.0pt;\"><span lang=\"en-US\">Elastic Search <\/span><span lang=\"ko\">\uc5d4\uc9c4\uc758<\/span> <span lang=\"ko\">\uae30\ubcf8\uc124\uc815\uc740<\/span> <span lang=\"ko\">\ub204\uad6c\ub098<\/span> <span lang=\"ko\">\ub4e4\uc5b4\uc640\uc11c<\/span> <span lang=\"ko\">\ub370\uc774\ud130\ub97c<\/span> <span lang=\"ko\">\ucd94\uac00<\/span><span lang=\"en-US\">, <\/span><span lang=\"ko\">\uc218\uc815<\/span><span lang=\"en-US\">, <\/span><span lang=\"ko\">\uc0ad\uc81c\uac00<\/span> <span lang=\"ko\">\uac00\ub2a5\ud558\uae30<\/span> <span lang=\"ko\">\ub54c\ubb38\uc5d0<\/span> <span lang=\"ko\">\ud574\ud0b9\uc73c\ub85c<\/span> <span lang=\"ko\">\uc778\ud558\uc5ec<\/span> <span lang=\"ko\">\ub370\uc774\ud130\uac00<\/span> <span lang=\"ko\">\uc0ac\ub77c\uc9c0\ub294<\/span> <span lang=\"ko\">\uacbd\uc6b0\uac00<\/span> <span lang=\"ko\">\ubc1c\uc0dd\ud558\uc5ec<\/span><span lang=\"en-US\">, <\/span><span lang=\"ko\">\ubcf4\uc548\uc5d0<\/span> <span lang=\"ko\">\ub300\ud55c<\/span> <span lang=\"ko\">\ucc98\ub9ac\ub97c<\/span> <span lang=\"ko\">\ubaa9\ud45c\ub85c<\/span> <span lang=\"ko\">\ud55c\ub2e4<\/span><span lang=\"en-US\">.<\/span><\/p>\n<p><strong><span lang=\"ko\" style=\"font-family: 'Malgun Gothic'; font-size: 11pt; font-style: normal;\">II. \uc5f0\uad6c<\/span> <span lang=\"ko\" style=\"font-family: 'Malgun Gothic'; font-size: 11pt; font-style: normal;\">\ubc0f<\/span> <span lang=\"ko\" style=\"font-family: 'Malgun Gothic'; font-size: 11pt; font-style: normal;\">\uac1c\ubc1c\ub0b4\uc6a9<\/span><\/strong><\/p>\n<p><span style=\"font-family: 'Malgun Gothic'; font-size: 11.0pt; font-weight: normal; font-style: normal;\">1. \ubcf4\uc548\ud655\uc778<\/span><\/p>\n<p style=\"margin: 0in; font-family: 'Malgun Gothic'; font-size: 11pt; padding-left: 40px;\"><span lang=\"en-US\">Enabled : false <\/span><span lang=\"ko\">\uc774\uba74<\/span> <span lang=\"ko\">\ubcf4\uc548\uc124\uc815\uc774<\/span> <span lang=\"ko\">\uc548\ub418\uc5b4<\/span> <span lang=\"ko\">\uc788\ub294<\/span> <span lang=\"ko\">\uc0c1\ud0dc<\/span><\/p>\n<div style=\"direction: ltr;\">\n<table style=\"width: 100%; margin-left: 40px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\" title=\"\" border=\"1\" summary=\"\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td style=\"vertical-align: top; width: 4.2625in; padding: 2.0pt 3.0pt 2.0pt 3.0pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><a href=\"http:\/\/218.232.104.185:9358\/_xpack\/usage?filter_path=security\">http:\/\/218.232.104.185:9358\/_xpack\/usage?filter_path=security<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<\/div>\n<div style=\"direction: ltr;\">\n<table style=\"width: 100%; margin-left: 40px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\" title=\"\" border=\"1\" summary=\"\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td style=\"vertical-align: top; width: 6.4006in; padding: 2.0pt 3.0pt 2.0pt 3.0pt; border: 1pt solid #A3A3A3;\">\n<p lang=\"en-US\" style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt; color: black;\">{&#8220;security&#8221;:{&#8220;available&#8221;:true,&#8221;enabled&#8221;:false,&#8221;ssl&#8221;:{&#8220;http&#8221;:{&#8220;enabled&#8221;:false},&#8221;transport&#8221;:{&#8220;enabled&#8221;:false}}}}<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p lang=\"en-US\" style=\"margin: 0in; font-family: 'Malgun Gothic'; font-size: 11.0pt;\">\n<p><span style=\"font-family: 'Malgun Gothic'; font-size: 11.0pt; font-weight: normal; font-style: normal;\">2. \ubcf4\uc548\uc124\uc815<\/span><\/p>\n<p style=\"margin: 0in; padding-left: 40px;\"><span lang=\"ko\" style=\"font-family: Calibri; font-size: 11.0pt;\">vi \/etc\/elasticsearch<\/span><span lang=\"en-US\" style=\"font-family: Calibri; font-size: 11.0pt;\">\/e<\/span><a href=\"http:\/\/elasticsearch.yml\/\"><span lang=\"ko\" style=\"font-family: 'KoPub Dotum'; font-size: 10.5pt; background: white;\">lasticsearch.yml<\/span><\/a><\/p>\n<div style=\"direction: ltr;\">\n<table style=\"width: 100%; margin-left: 40px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\" title=\"\" border=\"1\" summary=\"\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td style=\"vertical-align: top; width: 6.293in; padding: 2.0pt 3.0pt 2.0pt 3.0pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">xpack.security.transport.ssl.enabled: true<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">xpack.security.enabled: true<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p lang=\"en-US\" style=\"margin: 0in; font-family: 'Malgun Gothic'; font-size: 11.0pt;\">\n<p><span lang=\"ko\" style=\"font-family: 'Malgun Gothic'; font-size: 11.0pt; font-weight: normal; font-style: normal;\">3. \ud328\uc2a4\uc6cc\ub4dc<\/span> <span lang=\"ko\" style=\"font-family: 'Malgun Gothic'; font-size: 11.0pt; font-weight: normal; font-style: normal;\">\uc124\uc815<\/span><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11pt; padding-left: 40px;\">\/usr\/share\/elasticsearch\/bin\/elasticsearch-setup-passwords interactive<\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\">\n<div style=\"direction: ltr;\">\n<table style=\"width: 100%; margin-left: 40px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\" title=\"\" border=\"1\" summary=\"\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td style=\"vertical-align: top; width: 6.3993in; padding: 2.0pt 3.0pt 2.0pt 3.0pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\">Initiating the setup of passwords for reserved users elastic,apm_system,kibana,kibana_system,logstash_system,beats_system,remote_monitoring_user.<\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\">You will be prompted to enter passwords as the process progresses.<\/p>\n<p style=\"margin: 0in; font-size: 8.25pt; color: black;\"><span lang=\"ko\" style=\"font-family: Menlo;\">Please confirm that you would like to continue [y\/N] <span style=\"color: #ff0000;\">y<\/span><\/span><span style=\"color: #ff0000;\"><span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\ub97c <\/span><span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\uc785\ub825<\/span><\/span><\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\">\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\"><span lang=\"ko\">Enter password for [elastic]:<\/span><span lang=\"en-US\">\u00a0<span style=\"color: #ff0000;\">\ud328\uc2a4\uc6cc\ub4dc\uc785\ub825<\/span><\/span><\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\"><span lang=\"ko\">Reenter password for [elastic]:<\/span><span lang=\"en-US\"> <span style=\"color: #ff0000;\">\ud328\uc2a4\uc6cc\ub4dc\uc785\ub825<\/span><\/span><\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\"><span lang=\"ko\">Enter password for [apm_system]:<\/span><span lang=\"en-US\"> <span style=\"color: #ff0000;\">\ud328\uc2a4\uc6cc\ub4dc\uc785\ub825<\/span><\/span><\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\"><span lang=\"ko\">Reenter password for [apm_system]:<\/span><span lang=\"en-US\"> <span style=\"color: #ff0000;\">\ud328\uc2a4\uc6cc\ub4dc\uc785\ub825<\/span><\/span><\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\"><span lang=\"ko\">Enter password for [kibana_system]:<\/span><span lang=\"en-US\"> <span style=\"color: #ff0000;\">\ud328\uc2a4\uc6cc\ub4dc\uc785\ub825<\/span><\/span><\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\"><span lang=\"ko\">Reenter password for [kibana_system]:<\/span><span lang=\"en-US\"> <span style=\"color: #ff0000;\">\ud328\uc2a4\uc6cc\ub4dc\uc785\ub825<\/span><\/span><\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\"><span lang=\"ko\">Enter password for [logstash_system]:<\/span><span lang=\"en-US\"> <span style=\"color: #ff0000;\">\ud328\uc2a4\uc6cc\ub4dc\uc785\ub825<\/span><\/span><\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\"><span lang=\"ko\">Reenter password for [logstash_system]:<\/span><span lang=\"en-US\"> <span style=\"color: #ff0000;\">\ud328\uc2a4\uc6cc\ub4dc\uc785\ub825<\/span><\/span><\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\"><span lang=\"ko\">Enter password for [beats_system]:<\/span><span lang=\"en-US\"> <span style=\"color: #ff0000;\">\ud328\uc2a4\uc6cc\ub4dc\uc785\ub825<\/span><\/span><\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\"><span lang=\"ko\">Reenter password for [beats_system]:<\/span><span lang=\"en-US\"> <span style=\"color: #ff0000;\">\ud328\uc2a4\uc6cc\ub4dc\uc785\ub825<\/span><\/span><\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\"><span lang=\"ko\">Enter password for [remote_monitoring_user]:<\/span><span lang=\"en-US\"> <span style=\"color: #ff0000;\">\ud328\uc2a4\uc6cc\ub4dc\uc785\ub825<\/span><\/span><\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\"><span lang=\"ko\">Reenter password for [remote_monitoring_user]:<\/span><span lang=\"en-US\"> <span style=\"color: #ff0000;\">\ud328\uc2a4\uc6cc\ub4dc\uc785\ub825<\/span><\/span><\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\">Changed password for user [apm_system]\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\">Changed password for user [kibana_system]\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\">Changed password for user [kibana]\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\">Changed password for user [logstash_system]\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\">Changed password for user [beats_system]\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\">Changed password for user [remote_monitoring_user]\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\">Changed password for user [elastic]\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\"><span lang=\"ko\">root@topaz-linux:\/etc\/elasticsearch#<\/span><span lang=\"en-US\">\u00a0<\/span><\/p>\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\">\n<p style=\"margin: 0in; font-family: Menlo; font-size: 8.25pt; color: black;\">\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<\/div>\n<p lang=\"en-US\" style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">\n<p style=\"margin: 0in; font-size: 11.0pt;\"><strong><span lang=\"en-US\" style=\"font-family: Calibri;\">III.<\/span><span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\uacb0\ub860<\/span><\/strong><\/p>\n<p style=\"margin: 0in; font-size: 11pt; padding-left: 40px;\"><span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\ud574\ub2f9<\/span> <span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\uc0ac\uc774\ud2b8\ub85c<\/span> <span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\ub4e4\uc5b4\uac08\ub54c<\/span> <span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\ud56d\uc0c1<\/span><span lang=\"en-US\" style=\"font-family: 'Malgun Gothic';\"> ID<\/span><span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\uc640<\/span> <span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\ube44\ubc00\ubc88\ud638\ub97c<\/span> <span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\ubb3c\uc5b4\ubcf4\uae30\ub54c\ubb38\uc5d0<\/span> <span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\uc678\ubd80\ub85c<\/span> <span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\ubd80\ud130\uc758<\/span> <span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\ud574\ud0b9\uc744<\/span> <span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\ub9c9\uc744\uc218<\/span> <span lang=\"ko\" style=\"font-family: 'Malgun Gothic';\">\uc788\uc5c8\ub2e4<\/span><span lang=\"en-US\" style=\"font-family: 'Malgun Gothic';\">.<\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; font-family: 'Malgun Gothic'; font-size: 11.0pt;\">\n<p lang=\"en-US\" style=\"margin: 0in; font-family: 'Malgun Gothic'; font-size: 11.0pt;\">\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I. \ubaa9\ud45c Elastic Search \uc5d4\uc9c4\uc758 \uae30\ubcf8\uc124\uc815\uc740 \ub204\uad6c\ub098 \ub4e4\uc5b4\uc640\uc11c \ub370\uc774\ud130\ub97c \ucd94\uac00, \uc218\uc815, \uc0ad\uc81c\uac00 \uac00\ub2a5\ud558\uae30 \ub54c\ubb38\uc5d0 \ud574\ud0b9\uc73c\ub85c \uc778\ud558\uc5ec \ub370\uc774\ud130\uac00 \uc0ac\ub77c\uc9c0\ub294 \uacbd\uc6b0\uac00 \ubc1c\uc0dd\ud558\uc5ec, \ubcf4\uc548\uc5d0 \ub300\ud55c \ucc98\ub9ac\ub97c \ubaa9\ud45c\ub85c \ud55c\ub2e4. II. \uc5f0\uad6c \ubc0f \uac1c\ubc1c\ub0b4\uc6a9 1. \ubcf4\uc548\ud655\uc778 Enabled : false \uc774\uba74 \ubcf4\uc548\uc124\uc815\uc774 \uc548\ub418\uc5b4 \uc788\ub294 \uc0c1\ud0dc http:\/\/218.232.104.185:9358\/_xpack\/usage?filter_path=security &nbsp; {&#8220;security&#8221;:{&#8220;available&#8221;:true,&#8221;enabled&#8221;:false,&#8221;ssl&#8221;:{&#8220;http&#8221;:{&#8220;enabled&#8221;:false},&#8221;transport&#8221;:{&#8220;enabled&#8221;:false}}}} 2. \ubcf4\uc548\uc124\uc815 vi \/etc\/elasticsearch\/elasticsearch.yml xpack.security.transport.ssl.enabled: true xpack.security.enabled: true 3. \ud328\uc2a4\uc6cc\ub4dc \uc124\uc815 \/usr\/share\/elasticsearch\/bin\/elasticsearch-setup-passwords interactive [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[300,2],"tags":[301,303],"class_list":["post-2425","post","type-post","status-publish","format-standard","hentry","category-elasticsearch","category-2","tag-elastic-search","tag-303"],"_links":{"self":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2425"}],"version-history":[{"count":1,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2425\/revisions"}],"predecessor-version":[{"id":2426,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2425\/revisions\/2426"}],"wp:attachment":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2425"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}