{"id":431361,"date":"2024-09-06T03:00:09","date_gmt":"2024-09-06T03:00:09","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=431361"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=431361","title":{"rendered":"<span>Logstash. \u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0444\u0438\u043b\u044c\u0442\u0440\u0430 Dissect \u043d\u0430\u0434 Grok<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041c\u044b \u0432 \u0414\u043e\u043c\u043a\u043b\u0438\u043a \u043c\u043d\u043e\u0433\u043e \u043b\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c ELK-stack (\u0441\u0435\u0439\u0447\u0430\u0441 \u0443\u0436\u0435 OpenSearch) \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043b\u043e\u0433\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443 \u043d\u0430\u0441 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e: \u043e\u043a\u043e\u043b\u043e 400 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442\u043e\u0432 \u0432 \u0434\u0435\u043d\u044c. 400 \u0433\u0438\u0433\u043e\u0432, \u041a\u0430\u0440\u043b! \u0412\u0435\u0441\u044c \u044d\u0442\u043e\u0442 \u043e\u0431\u044a\u0451\u043c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 Logstash, \u0433\u0434\u0435 \u043b\u043e\u0433\u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u043f\u0430\u0440\u0441\u044f\u0442\u0441\u044f, \u043e\u0431\u043e\u0433\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438 \u0442. \u0434. <\/p>\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u043d\u044f\u0442\u044b \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430\u0445. \u041d\u0430\u0447\u0430\u043b\u0438 \u0441 HAproxy. \u0423 \u043d\u0430\u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0433\u0440\u0443\u043f\u043f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u0432 \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u0446\u0435\u043b\u0438, \u0441 \u0440\u0430\u0437\u043d\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043b\u043e\u0433\u043e\u0432. \u0420\u0430\u043d\u044c\u0448\u0435 \u043a\u0430\u0436\u0434\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430 HAproxy \u043f\u0438\u0441\u0430\u043b\u0430 \u043b\u043e\u0433\u0438 \u0432 \u043a\u0430\u043a\u043e\u043c-\u0442\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u0438 \u043c\u044b \u043f\u0430\u0440\u0441\u0438\u043b\u0438 \u044d\u0442\u0438 \u043b\u043e\u0433\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430 \u0434\u043b\u044f Grok-\u0444\u0438\u043b\u044c\u0442\u0440\u0430. \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043b\u0438\u0431\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b\u043e \u043f\u043e\u0434 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0438 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430 \u043f\u043e\u043b\u044f, \u043b\u0438\u0431\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u043e\u0441\u044c \u0432 \u0432\u0438\u0434\u0435 \u043e\u0434\u043d\u043e\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<p>\u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u044b \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u043f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043d\u043e\u0432\u044b\u0445 Grok-\u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432, \u0438 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u044b \u0438\u0445 \u0440\u0435\u0448\u0438\u043b\u0438, \u043e\u0442\u043a\u0430\u0437\u0430\u0432\u0448\u0438\u0441\u044c \u043e\u0442 Grok.<\/p>\n<h2>\u041d\u0435\u0443\u0434\u0430\u0447\u043d\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u043d\u0430 Grok<\/h2>\n<p>\u0414\u043b\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043b\u043e\u0433\u043e\u0432 \u043c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043f\u0430\u0447\u043a\u0443 Grok-\u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 \u043f\u043e\u0434 \u0441\u0430\u043c\u044b\u0435 \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u043b\u0430 \u00ab\u0432\u044b\u043f\u043b\u044e\u043d\u0443\u0442\u044c\u00bb HAproxy. \u041f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0444\u0438\u043b\u044c\u0442\u0440 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0442\u0430\u043a:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>filter {     grok {         patterns_dir =&gt; \"{{ logstash_conf_dir }}\/patterns\/\"         keep_empty_captures =&gt; true         match =&gt; {           \"message\" =&gt; [             \"%{HP_HTTP_MSG1}\",             \"%{HP_HTTP_MSG2}\",             \"%{HP_HTTP_MSG3}\",             \"%{HP_HTTP_MSG4}\",             \"%{HP_HTTP_MSG5}\",             \"%{HP_TCP_MSG1}\",             \"%{HP_LOG_MSG1}\",             \"%{HP_GLOBAL_MSG2}\",             \"%{HP_GLOBAL_MSG1}\",             \"%{HP_GLOBAL_MSG3}\",             \"%{HP_GLOBAL_MSG4}\"           ]         }         remove_field =&gt; \"message\"     }     date {         match =&gt; [ \"log_time\", \"dd\/MMM\/yyyy:HH:mm:ss.SSS\" ]     } }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0421\u0430\u043c\u0438 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>HP_TIME (?!&lt;[0-9])%{HOUR}:%{MINUTE}(?::%{SECOND})(?![0-9]) HP_DATE %{MONTHDAY}\/%{MONTH}\/%{YEAR}:%{HP_TIME}.%{INT} HP_FRONT %{DATA:[frontend_name]} HP_BACK %{DATA:[backend_name]} HP_SERVER_NAME %{DATA:[server_name]} HP_TR %{NUMBER:[Tr_response_time]} HP_TW %{NUMBER:[Tw_queues_waiting_connection]} HP_TC %{NUMBER:[Tc_establish_tcp_connection]} HP_TRF %{NUMBER:[TR_time_receive_full_request]} HP_TA %{NUMBER:[Ta_total_request_time]} HP_TT %{NUMBER:[Tt_total_time]} HP_IP %{IPORHOST:[client_ip]} HP_PORT %{NUMBER:[client_port]} HP_STATUS_CODE %{NUMBER:[status_code]} HP_BYTES_READ %{NUMBER:[bytes_read]} HP_CAP_REQ_COOKIE %{DATA:[captured_request_cookie]} HP_CAP_RES_COOKIE %{DATA:[captured_response_cookie]} HP_TERM_STATE %{DATA:[termination_state_with_cookie_status]} HP_ACT_CONN %{NUMBER:[active_connections]} HP_FE_CONN %{NUMBER:[front_connections]} HP_BE_CONN %{NUMBER:[back_connections]} HP_SERVER_CONN %{NUMBER:[server_conn]} HP_RETRIES %{NUMBER:[retries]} HP_SRV_QUE %{NUMBER:[server_queue]} HP_BACK_QUE %{NUMBER:[backend_queue]} HP_CREQH %{DATA:[captured_request_headers]} HP_CREQH_GREED %{GREEDYDATA:[captured_request_headers]} HP_CRESH %{DATA:[captured_response_headers]} HP_TERMINATION_STATE %{DATA:[termination_state]} HP_HTTP_REQUEST %{WORD:[http_request_method]} %{DATA:[url_original]} HTTP\/%{DATA:[http_version]} HP_HTTP_REQUEST_STRIPPED %{WORD:[http_request_method]} %{DATA:[url_original]} HP_LOG %{GREEDYDATA:[log]} HP_LOG_LEVEL %{DATA:[log_level]} HP_STATE %{DATA:[state]} HP_REASON %{DATA:[reason]} HP_CHECK_DUR %{DATA:[check_duration]} HP_ACT_SERVS %{NUMBER:[active_servers_online]} HP_BACKUP_SERVS %{NUMBER:[backup_servers_online]} HP_SESS_REQ %{NUMBER:[sessions_requeued]} HP_TOTAL_QUE %{NUMBER:[total_in_queue]} HP_PID %{NUMBER:[pid]} HP_LOGS_WORD_START proxy|backend|Proxy   HP_HTTP_MSG1 %{HP_IP}:%{HP_PORT} \\[%{HP_DATE:[log_time]}\\] %{HP_FRONT} %{HP_BACK}\/%{HP_SERVER_NAME} %{HP_TRF}\/%{HP_TW}\/%{HP_TC}\/%{HP_TR}\/%{HP_TA} %{HP_STATUS_CODE} %{HP_BYTES_READ} %{HP_CAP_REQ_COOKIE} %{HP_CAP_RES_COOKIE} %{HP_TERM_STATE} %{HP_ACT_CONN}\/%{HP_FE_CONN}\/%{HP_BE_CONN}\/%{HP_SERVER_CONN}\/%{HP_RETRIES} %{HP_SRV_QUE}\/%{HP_BACK_QUE} \\{%{HP_CREQH}\\} \\{%{HP_CRESH}\\} \"%{HP_HTTP_REQUEST}\" HP_HTTP_MSG2 %{HP_IP}:%{HP_PORT} \\[%{HP_DATE:[log_time]}\\] %{HP_FRONT} %{HP_BACK}\/%{HP_SERVER_NAME} %{HP_TRF}\/%{HP_TW}\/%{HP_TC}\/%{HP_TR}\/%{HP_TA} %{HP_STATUS_CODE} %{HP_BYTES_READ} %{HP_CAP_REQ_COOKIE} %{HP_CAP_RES_COOKIE} %{HP_TERM_STATE} %{HP_ACT_CONN}\/%{HP_FE_CONN}\/%{HP_BE_CONN}\/%{HP_SERVER_CONN}\/%{HP_RETRIES} %{HP_SRV_QUE}\/%{HP_BACK_QUE} \\{%{HP_CREQH}\\} \"%{HP_HTTP_REQUEST}\" HP_HTTP_MSG3 %{HP_IP}:%{HP_PORT} \\[%{HP_DATE:[log_time]}\\] %{HP_FRONT} %{HP_BACK}\/%{HP_SERVER_NAME} %{HP_TRF}\/%{HP_TW}\/%{HP_TC}\/%{HP_TR}\/%{HP_TA} %{HP_STATUS_CODE} %{HP_BYTES_READ} %{HP_CAP_REQ_COOKIE} %{HP_CAP_RES_COOKIE} %{HP_TERM_STATE} %{HP_ACT_CONN}\/%{HP_FE_CONN}\/%{HP_BE_CONN}\/%{HP_SERVER_CONN}\/%{HP_RETRIES} %{HP_SRV_QUE}\/%{HP_BACK_QUE} \"%{HP_HTTP_REQUEST}\" HP_HTTP_MSG4 %{HP_IP}:%{HP_PORT} \\[%{HP_DATE:[log_time]}\\] %{HP_FRONT} %{HP_BACK}\/%{HP_SERVER_NAME} %{HP_TRF}\/%{HP_TW}\/%{HP_TC}\/%{HP_TR}\/%{HP_TA} %{HP_STATUS_CODE} %{HP_BYTES_READ} %{HP_CAP_REQ_COOKIE} %{HP_CAP_RES_COOKIE} %{HP_TERM_STATE} %{HP_ACT_CONN}\/%{HP_FE_CONN}\/%{HP_BE_CONN}\/%{HP_SERVER_CONN}\/%{HP_RETRIES} %{HP_SRV_QUE}\/%{HP_BACK_QUE} \"%{HP_HTTP_REQUEST_STRIPPED} HP_HTTP_MSG5 %{HP_IP}:%{HP_PORT} \\[%{HP_DATE:[log_time]}\\] %{HP_FRONT} %{HP_BACK}\/%{HP_SERVER_NAME} %{HP_TRF}\/%{HP_TW}\/%{HP_TC}\/%{HP_TR}\/%{HP_TA} %{HP_STATUS_CODE} %{HP_BYTES_READ} %{HP_CAP_REQ_COOKIE} %{HP_CAP_RES_COOKIE} %{HP_TERM_STATE} %{HP_ACT_CONN}\/%{HP_FE_CONN}\/%{HP_BE_CONN}\/%{HP_SERVER_CONN}\/%{HP_RETRIES} %{HP_SRV_QUE}\/%{HP_BACK_QUE} \\{%{HP_CREQH_GREED} HP_TCP_MSG1 %{HP_IP}:%{HP_PORT} \\[%{HP_DATE:[log_time]}\\] %{HP_FRONT} %{HP_BACK}\/%{HP_SERVER_NAME} %{HP_TW}\/%{HP_TC}\/%{HP_TT} %{HP_BYTES_READ} %{HP_TERMINATION_STATE} %{HP_ACT_CONN}\/%{HP_FE_CONN}\/%{HP_BE_CONN}\/%{HP_SERVER_CONN}\/%{HP_RETRIES} %{HP_SRV_QUE}\/%{HP_BACK_QUE} HP_LOG_MSG1 %{HP_IP}:%{HP_PORT} \\[%{HP_DATE:[log_time]}\\] %{HP_LOG}  HP_GLOBAL_MSG1 Server %{HP_BACK}\/%{HP_SERVER_NAME} is %{HP_STATE},%{SPACE}%{HP_LOG} HP_GLOBAL_MSG2 \\[%{HP_LOG_LEVEL}\\]%{SPACE}\\(%{HP_PID}\\)%{SPACE}:%{SPACE}%{HP_GLOBAL_MSG1} HP_GLOBAL_MSG3 \\[%{HP_LOG_LEVEL}\\]%{SPACE}\\(%{HP_PID}\\)%{SPACE}:%{SPACE}%{HP_LOG} HP_GLOBAL_MSG4 %{HP_LOGS_WORD_START}%{SPACE}%{HP_LOG}<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0412\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u044d\u0442\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043d\u0430\u00a0HAproxy \u2116\u00a01, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0438\u0448\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 2\u00a0\u0442\u044b\u0441. \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432\u00a0\u043c\u0438\u043d\u0443\u0442\u0443. \u0412\u0441\u0451 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u0432\u0441\u0435 \u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0438 \u0445\u043b\u043e\u043f\u0430\u043b\u0438 \u0432\u00a0\u043b\u0430\u0434\u043e\u0448\u0438. \u041f\u0440\u0430\u0432\u0434\u0430, \u0432\u044b\u0440\u043e\u0441 \u0433\u0440\u0430\u0444\u0438\u043a, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ca8\/1a1\/120\/ca81a1120f9e01c3396aaba138a670bc.png\" alt=\"\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 Grok \u043d\u0430 HAproxy \u21161\" title=\"\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 Grok \u043d\u0430 HAproxy \u21161\" width=\"936\" height=\"306\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ca8\/1a1\/120\/ca81a1120f9e01c3396aaba138a670bc.png\"\/><\/p>\n<div><figcaption>\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 Grok \u043d\u0430 HAproxy \u21161<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u0430\u00a0\u043d\u0435\u0433\u043e \u043d\u0435\u00a0\u0441\u0440\u0430\u0437\u0443 \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0438 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0\u043b\u043e\u0433\u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u043b\u0438 \u0432\u00a0OpenSearch \u0441\u00a0\u043f\u0440\u0435\u0436\u043d\u0435\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e. \u0410\u00a0\u0437\u0440\u044f, \u0432\u0435\u0434\u044c \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0432 3\u20134\u00a0\u0440\u0430\u0437\u0430!<\/p>\n<p>\u041f\u043e\u0448\u043b\u0438 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u00a0HAproxy \u2116\u00a02, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0438\u0448\u0435\u0442 \u0443\u0436\u0435 120 \u0442\u044b\u0441. \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432\u00a0\u043c\u0438\u043d\u0443\u0442\u0443. \u0422\u0443\u0442-\u0442\u043e \u043d\u0430\u0441 \u0438 \u0436\u0434\u0430\u043b\u043e \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0435: \u043f\u043e\u0441\u043b\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0443\u043b\u0435\u0442\u0435\u043b\u0430 \u0432\u00a0\u043a\u043e\u0441\u043c\u043e\u0441, \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0448\u0438\u0441\u044c \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0432 40\u00a0\u0440\u0430\u0437!<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9be\/f84\/7ed\/9bef847ed2081ece2404aa9e9fb5b825.png\" alt=\"\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 Grok \u043d\u0430 HAproxy \u21162\" title=\"\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 Grok \u043d\u0430 HAproxy \u21162\" width=\"936\" height=\"314\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9be\/f84\/7ed\/9bef847ed2081ece2404aa9e9fb5b825.png\"\/><\/p>\n<div><figcaption>\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 Grok \u043d\u0430 HAproxy \u21162<\/figcaption><\/div>\n<\/figure>\n<p>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0443\u043f\u0430\u043b\u0430 \u0434\u043e 20 \u0442\u044b\u0441. \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e95\/dd2\/657\/e95dd2657546c961fa61adeb09ad75b1.png\" alt=\"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 Grok \u043d\u0430 HAproxy \u21162\" title=\"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 Grok \u043d\u0430 HAproxy \u21162\" width=\"936\" height=\"302\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e95\/dd2\/657\/e95dd2657546c961fa61adeb09ad75b1.png\"\/><\/p>\n<div><figcaption>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 Grok \u043d\u0430 HAproxy \u21162<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e worker&#8217;\u043e\u0432 \u043d\u0430 Logstash. \u0420\u0430\u043d\u044c\u0448\u0435 \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0441\u044f \u043e\u0434\u0438\u043d, \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043b\u0438 12. \u041f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0432\u044b\u0440\u043e\u0441\u043b\u043e \u043d\u0430 12 \u044f\u0434\u0435\u0440, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0434\u043e 100 \u0442\u044b\u0441. \u0432 \u043c\u0438\u043d\u0443\u0442\u0443, \u043d\u043e \u044d\u0442\u043e\u0433\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0431\u044b\u043b\u043e \u043c\u0430\u043b\u043e, \u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043d\u0430 Logstash \u043a\u043e\u043d\u0447\u0438\u043b\u0438\u0441\u044c. \u0421\u0442\u0430\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0442\u0430\u043a \u0436\u0438\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f, Grok \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043f\u0440\u043e\u0436\u043e\u0440\u043b\u0438\u0432\u044b\u0439 \u043f\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c. \u041e\u0442\u043a\u0430\u0442\u0438\u043b\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0438 \u043f\u043e\u0448\u043b\u0438 \u0434\u0443\u043c\u0430\u0442\u044c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u043d\u0435 \u043f\u043e\u043a\u0443\u043f\u0430\u044f \u0435\u0449\u0451 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e VM \u043f\u043e\u0434 Logstash.<\/p>\n<h2>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u0444\u0438\u043b\u044c\u0442\u0440 Dissect<\/h2>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a\u00a0\u043f\u0430\u0440\u0441\u0438\u0442\u044c \u043d\u0430\u0434\u043e, \u043d\u043e\u00a0Grok \u043d\u0435\u00a0\u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0430\u00a0\u043a\u0430\u043a\u0438\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0435\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b \u0432\u00a0Logstash? \u0418 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438 Dissect. \u042d\u0442\u043e \u0444\u0438\u043b\u044c\u0442\u0440-\u0442\u043e\u043a\u0435\u043d\u0438\u0437\u0430\u0442\u043e\u0440. \u0422\u043e\u043a\u0435\u043d\u0438\u0437\u0430\u0446\u0438\u044f\u00a0\u2014 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432\u00a0\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u00a0\u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u0443\u044f\u0441\u044c \u043d\u0430\u00a0\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0432\u00a0\u044d\u0442\u043e\u043c \u0441\u0430\u043c\u043e\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u0435.<\/p>\n<p>Dissect\u00a0\u0432\u00a0\u0440\u0430\u0437\u044b\u00a0\u0431\u044b\u0441\u0442\u0440\u0435\u0435 Grok, \u043d\u043e\u00a0\u0435\u0441\u0442\u044c \u0438 \u043b\u043e\u0436\u043a\u0430 \u0434\u0451\u0433\u0442\u044f: Dissect \u043d\u0435\u00a0\u0443\u043c\u0435\u0435\u0442 \u0432\u00a0\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u043d\u0435\u00a0\u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0451\u0442 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043d\u0435\u00a0\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b (\u0448\u0430\u0431\u043b\u043e\u043d \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0434\u0438\u043d). \u0412\u00a0\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e\u0442 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0434\u0451\u0436\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0442\u0441\u044f. \u0414\u0435\u043b\u043e \u0432\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e\u00a0\u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u043d\u0435\u00a0\u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u0434\u00a0\u0448\u0430\u0431\u043b\u043e\u043d \u0445\u043e\u0442\u044f\u00a0\u0431\u044b \u043e\u0434\u043d\u0438\u043c \u043f\u043e\u043b\u0435\u043c \u0438\u043b\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c, \u0442\u043e \u043d\u0435\u00a0\u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0432\u0435\u0441\u044c \u043b\u043e\u0433.<\/p>\n<p>\u041d\u0430\u0431\u0440\u043e\u0441\u0430\u043b\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Grok, \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 Dissect. \u0427\u0438\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0445\u0443\u0434\u0448\u0438\u043b\u0430\u0441\u044c, \u043d\u043e \u0447\u0442\u043e \u043f\u043e\u0434\u0435\u043b\u0430\u0442\u044c:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>filter {     dissect {         mapping =&gt; {             \"message\" =&gt; \"%{client_ip}:%{client_port} [%{log_time}] %{log_text}\"         }     }     if [log_text] {         dissect {             mapping =&gt; {                 \"log_text\" =&gt; \"%{frontend_name} %{backend_name}\/%{server_name} %{TR_time_receive_full_request}\/%{Tw_queues_waiting_connection}\/%{Tc_establish_tcp_connection}\/%{Tr_response_time}\/%{Ta_total_request_time} %{status_code} %{bytes_read} %{captured_request_cookie} %{captured_response_cookie} %{termination_state_with_cookie_status} %{active_connections}\/%{front_connections}\/%{back_connections}\/%{server_conn}\/%{retries} %{server_queue}\/%{backend_queue} %{http1}\"             }         }     }     if [log_text] and \"_dissectfailure\" in [tags] {         dissect {             remove_tag =&gt; [\"_dissectfailure\"]             mapping =&gt; {                 \"log_text\" =&gt; \"%{frontend_name} %{backend_name}\/%{server_name} %{Tw_queues_waiting_connection}\/%{Tc_establish_tcp_connection}\/%{Tt_total_time} %{bytes_read} %{termination_state} %{active_connections}\/%{front_connections}\/%{back_connections}\/%{server_conn}\/%{retries} %{server_queue}\/%{backend_queue}\"             }         }     }     if [log_text] and \"_dissectfailure\" in [tags] {         dissect {             remove_tag =&gt; [\"_dissectfailure\"]             mapping =&gt; {                 \"log_text\" =&gt; \"%{log_message}\"             }         }     }     if \"_dissectfailure\" in [tags] {         dissect {             mapping =&gt; {                 \"message\" =&gt; \"%{log_message}\"             }         }     }     if [http1] {         dissect {             remove_tag =&gt; [\"_dissectfailure\"]             mapping =&gt; {                 \"http1\" =&gt; '%{captured_request_headers} %{captured_request_headers} \"%{http_request_method} %{url_original} HTTP\/%{http_version}\"'             }         }     }     if [http1] and \"_dissectfailure\" in [tags] {         dissect {             remove_tag =&gt; [\"_dissectfailure\"]             mapping =&gt; {                 \"http1\" =&gt; '%{captured_request_headers} \"%{http_request_method} %{url_original} HTTP\/%{http_version}\"'             }         }     }     if [http1] and \"_dissectfailure\" in [tags] {         dissect {             remove_tag =&gt; [\"_dissectfailure\"]             mapping =&gt; {                 \"http1\" =&gt; '%{captured_request_headers} \"%{http_request_method} %{url_original}'             }         }     }     if [http1] and \"_dissectfailure\" in [tags] {         dissect {             remove_tag =&gt; [\"_dissectfailure\"]             mapping =&gt; {                 \"http1\" =&gt; '\"%{http_request_method} %{url_original} HTTP\/%{http_version}\"'             }         }     }     if [http1] and \"_dissectfailure\" in [tags] {         dissect {             remove_tag =&gt; [\"_dissectfailure\"]             mapping =&gt; {                 \"http1\" =&gt; '\"%{http_request_method} %{url_original}'             }         }     }     if [http1] and \"_dissectfailure\" in [tags] {         dissect {             remove_tag =&gt; [\"_dissectfailure\"]             mapping =&gt; {                 \"http1\" =&gt; \"%{captured_request_headers}\"             }         }     }     date {         match =&gt; [ \"log_time\", \"dd\/MMM\/yyyy:HH:mm:ss.SSS\" ]     }     mutate {         remove_field =&gt; [\"message\"]         remove_field =&gt; [\"log_text\"]         remove_field =&gt; [\"http1\"]     } }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0418 \u043e\u043d\u043e \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e! \u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0432\u0441\u0435\u0433\u043e \u0432 2 \u0440\u0430\u0437\u0430, \u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0442\u0430\u043a \u0438 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043e\u0434\u0438\u043d worker, \u0430 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043e\u043a\u043e\u043b\u043e 10 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432. \u041d\u0430\u043f\u043e\u043c\u043d\u044e, \u0441 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439 \u043d\u0430 Grok \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0437\u0430\u043c\u0435\u0434\u043b\u0438\u043b\u0430\u0441\u044c \u0432 40 \u0440\u0430\u0437!<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9fa\/b13\/003\/9fab130037b27b8cd0472e8384bb105a.png\" alt=\"\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 Dissect \u043d\u0430 HAproxy \u21162\" title=\"\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 Dissect \u043d\u0430 HAproxy \u21162\" width=\"936\" height=\"306\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9fa\/b13\/003\/9fab130037b27b8cd0472e8384bb105a.png\"\/><\/p>\n<div><figcaption>\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 Dissect \u043d\u0430 HAproxy \u21162<\/figcaption><\/div>\n<\/figure>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0443\u0441\u043f\u0435\u0445. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0444\u0438\u043b\u044c\u0442\u0440 \u043d\u0430 HAproxy \u21163, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0438\u0448\u0435\u0442 \u0446\u0435\u043b\u044b\u0445 1,5 \u043c\u043b\u043d \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443! \u042d\u0442\u043e \u043e\u043a\u043e\u043b\u043e 25 \u0442\u044b\u0441. \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443. \u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 Grok \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u0430 \u043e\u043a\u043e\u043b\u043e 3 \u0441\u0435\u043a:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b72\/6db\/203\/b726db20366804d1508e72f08a9441ba.png\" alt=\"\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 Grok \u043d\u0430 HAproxy \u21163\" title=\"\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 Grok \u043d\u0430 HAproxy \u21163\" width=\"936\" height=\"316\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b72\/6db\/203\/b726db20366804d1508e72f08a9441ba.png\"\/><\/p>\n<div><figcaption>\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 Grok \u043d\u0430 HAproxy \u21163<\/figcaption><\/div>\n<\/figure>\n<p>\u0410 \u0447\u0435\u0440\u0435\u0437 Dissect\u00a0\u2014 \u0434\u043e 5\u00a0\u0441\u0435\u043a. \u041e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442! \u041f\u043e\u0432\u0442\u043e\u0440\u044e\u0441\u044c, \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 10 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443. \u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e. \u0415\u0441\u043b\u0438 \u0431\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u0442\u0435 \u0436\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0447\u0435\u0440\u0435\u0437 grok, \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u044b\u043b\u043e \u0431\u044b \u0432 \u0440\u0430\u0437\u044b \u0432\u044b\u0448\u0435, \u043a\u0430\u043a \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441 HAproxy \u21162.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a1f\/0fb\/285\/a1f0fb2851dcd42c0dad8ac89778f452.png\" alt=\"\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 Dissect \u043d\u0430 HAproxy \u21163\" title=\"\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 Dissect \u043d\u0430 HAproxy \u21163\" width=\"936\" height=\"318\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a1f\/0fb\/285\/a1f0fb2851dcd42c0dad8ac89778f452.png\"\/><\/p>\n<div><figcaption>\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 Dissect \u043d\u0430 HAproxy \u21163<\/figcaption><\/div>\n<\/figure>\n<h2>\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<p>Dissect\u00a0\u2014 \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 Grok. \u041e\u043d \u0432\u00a0\u0440\u0430\u0437\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u0437\u0430\u00a0\u0441\u0447\u0451\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u00a0\u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0435\u00a0\u043d\u0430\u00a0\u043e\u0441\u043d\u043e\u0432\u0435 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0444\u0438\u043b\u044c\u0442\u0440 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f\u00a0\u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u043e\u00a0\u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0443\u044e, \u0441\u0442\u0440\u0430\u0448\u043d\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443.<\/p>\n<p>Grok\u00a0\u2014 \u0441\u0438\u043b\u044c\u043d\u043e \u0433\u0438\u0431\u0447\u0435, \u0443\u0434\u043e\u0431\u043d\u0435\u0435, \u043f\u0440\u043e\u0449\u0435, \u043d\u043e, \u043a\u00a0\u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0437\u0430\u00a0\u044d\u0442\u0438 \u043f\u043b\u044e\u0441\u044b \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0440\u0430\u0441\u043f\u043b\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u043c\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438. \u0411\u0435\u0437\u0443\u0441\u043b\u043e\u0432\u043d\u043e, \u043f\u0440\u0438\u00a0\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0435 (\u0438\u043b\u0438 \u0435\u0441\u043b\u0438 \u0432\u044b \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u0433\u0430\u0442\u044b), \u043c\u043e\u0436\u043d\u043e \u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f Grok.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/840338\/\"> https:\/\/habr.com\/ru\/articles\/840338\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041c\u044b \u0432 \u0414\u043e\u043c\u043a\u043b\u0438\u043a \u043c\u043d\u043e\u0433\u043e \u043b\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c ELK-stack (\u0441\u0435\u0439\u0447\u0430\u0441 \u0443\u0436\u0435 OpenSearch) \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043b\u043e\u0433\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443 \u043d\u0430\u0441 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e: \u043e\u043a\u043e\u043b\u043e 400 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442\u043e\u0432 \u0432 \u0434\u0435\u043d\u044c. 400 \u0433\u0438\u0433\u043e\u0432, \u041a\u0430\u0440\u043b! \u0412\u0435\u0441\u044c \u044d\u0442\u043e\u0442 \u043e\u0431\u044a\u0451\u043c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 Logstash, \u0433\u0434\u0435 \u043b\u043e\u0433\u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u043f\u0430\u0440\u0441\u044f\u0442\u0441\u044f, \u043e\u0431\u043e\u0433\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438 \u0442. \u0434. <\/p>\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u043d\u044f\u0442\u044b \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430\u0445. \u041d\u0430\u0447\u0430\u043b\u0438 \u0441 HAproxy. \u0423 \u043d\u0430\u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0433\u0440\u0443\u043f\u043f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u0432 \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u0446\u0435\u043b\u0438, \u0441 \u0440\u0430\u0437\u043d\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043b\u043e\u0433\u043e\u0432. \u0420\u0430\u043d\u044c\u0448\u0435 \u043a\u0430\u0436\u0434\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430 HAproxy \u043f\u0438\u0441\u0430\u043b\u0430 \u043b\u043e\u0433\u0438 \u0432 \u043a\u0430\u043a\u043e\u043c-\u0442\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u0438 \u043c\u044b \u043f\u0430\u0440\u0441\u0438\u043b\u0438 \u044d\u0442\u0438 \u043b\u043e\u0433\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430 \u0434\u043b\u044f Grok-\u0444\u0438\u043b\u044c\u0442\u0440\u0430. \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043b\u0438\u0431\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b\u043e \u043f\u043e\u0434 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0438 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430 \u043f\u043e\u043b\u044f, \u043b\u0438\u0431\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u043e\u0441\u044c \u0432 \u0432\u0438\u0434\u0435 \u043e\u0434\u043d\u043e\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<p>\u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u044b \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u043f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043d\u043e\u0432\u044b\u0445 Grok-\u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432, \u0438 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u044b \u0438\u0445 \u0440\u0435\u0448\u0438\u043b\u0438, \u043e\u0442\u043a\u0430\u0437\u0430\u0432\u0448\u0438\u0441\u044c \u043e\u0442 Grok.<\/p>\n<h2>\u041d\u0435\u0443\u0434\u0430\u0447\u043d\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u043d\u0430 Grok<\/h2>\n<p>\u0414\u043b\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043b\u043e\u0433\u043e\u0432 \u043c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043f\u0430\u0447\u043a\u0443 Grok-\u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 \u043f\u043e\u0434 \u0441\u0430\u043c\u044b\u0435 \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u043b\u0430 \u00ab\u0432\u044b\u043f\u043b\u044e\u043d\u0443\u0442\u044c\u00bb HAproxy. \u041f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0444\u0438\u043b\u044c\u0442\u0440 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0442\u0430\u043a:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>filter {     grok {         patterns_dir =&gt; \"{{ logstash_conf_dir }}\/patterns\/\"         keep_empty_captures =&gt; true         match =&gt; {           \"message\" =&gt; [             \"%{HP_HTTP_MSG1}\",             \"%{HP_HTTP_MSG2}\",             \"%{HP_HTTP_MSG3}\",             \"%{HP_HTTP_MSG4}\",             \"%{HP_HTTP_MSG5}\",             \"%{HP_TCP_MSG1}\",             \"%{HP_LOG_MSG1}\",             \"%{HP_GLOBAL_MSG2}\",             \"%{HP_GLOBAL_MSG1}\",             \"%{HP_GLOBAL_MSG3}\",             \"%{HP_GLOBAL_MSG4}\"           ]         }         remove_field =&gt; \"message\"     }     date {         match =&gt; [ \"log_time\", \"dd\/MMM\/yyyy:HH:mm:ss.SSS\" ]     } }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0421\u0430\u043c\u0438 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>HP_TIME (?!&lt;[0-9])%{HOUR}:%{MINUTE}(?::%{SECOND})(?![0-9]) HP_DATE %{MONTHDAY}\/%{MONTH}\/%{YEAR}:%{HP_TIME}.%{INT} HP_FRONT %{DATA:[frontend_name]} HP_BACK %{DATA:[backend_name]} HP_SERVER_NAME %{DATA:[server_name]} HP_TR %{NUMBER:[Tr_response_time]} HP_TW %{NUMBER:[Tw_queues_waiting_connection]} HP_TC %{NUMBER:[Tc_establish_tcp_connection]} HP_TRF %{NUMBER:[TR_time_receive_full_request]} HP_TA %{NUMBER:[Ta_total_request_time]} HP_TT %{NUMBER:[Tt_total_time]} HP_IP %{IPORHOST:[client_ip]} HP_PORT %{NUMBER:[client_port]} HP_STATUS_CODE %{NUMBER:[status_code]} HP_BYTES_READ %{NUMBER:[bytes_read]} HP_CAP_REQ_COOKIE %{DATA:[captured_request_cookie]} HP_CAP_RES_COOKIE %{DATA:[captured_response_cookie]} HP_TERM_STATE %{DATA:[termination_state_with_cookie_status]} HP_ACT_CONN %{NUMBER:[active_connections]} HP_FE_CONN %{NUMBER:[front_connections]} HP_BE_CONN %{NUMBER:[back_connections]} HP_SERVER_CONN %{NUMBER:[server_conn]} HP_RETRIES %{NUMBER:[retries]} HP_SRV_QUE %{NUMBER:[server_queue]} HP_BACK_QUE %{NUMBER:[backend_queue]} HP_CREQH %{DATA:[captured_request_headers]} HP_CREQH_GREED %{GREEDYDATA:[captured_request_headers]} HP_CRESH %{DATA:[captured_response_headers]} HP_TERMINATION_STATE %{DATA:[termination_state]} HP_HTTP_REQUEST %{WORD:[http_request_method]} %{DATA:[url_original]} HTTP\/%{DATA:[http_version]} HP_HTTP_REQUEST_STRIPPED %{WORD:[http_request_method]} %{DATA:[url_original]} HP_LOG %{GREEDYDATA:[log]} HP_LOG_LEVEL %{DATA:[log_level]} HP_STATE %{DATA:[state]} HP_REASON %{DATA:[reason]} HP_CHECK_DUR %{DATA:[check_duration]} HP_ACT_SERVS %{NUMBER:[active_servers_online]} HP_BACKUP_SERVS %{NUMBER:[backup_servers_online]} HP_SESS_REQ %{NUMBER:[sessions_requeued]} HP_TOTAL_QUE %{NUMBER:[total_in_queue]} HP_PID %{NUMBER:[pid]} HP_LOGS_WORD_START proxy|backend|Proxy   HP_HTTP_MSG1 %{HP_IP}:%{HP_PORT} \\[%{HP_DATE:[log_time]}\\] %{HP_FRONT} %{HP_BACK}\/%{HP_SERVER_NAME} %{HP_TRF}\/%{HP_TW}\/%{HP_TC}\/%{HP_TR}\/%{HP_TA} %{HP_STATUS_CODE} %{HP_BYTES_READ} %{HP_CAP_REQ_COOKIE} %{HP_CAP_RES_COOKIE} %{HP_TERM_STATE} %{HP_ACT_CONN}\/%{HP_FE_CONN}\/%{HP_BE_CONN}\/%{HP_SERVER_CONN}\/%{HP_RETRIES} %{HP_SRV_QUE}\/%{HP_BACK_QUE} \\{%{HP_CREQH}\\} \\{%{HP_CRESH}\\} \"%{HP_HTTP_REQUEST}\" HP_HTTP_MSG2 %{HP_IP}:%{HP_PORT} \\[%{HP_DATE:[log_time]}\\] %{HP_FRONT} %{HP_BACK}\/%{HP_SERVER_NAME} %{HP_TRF}\/%{HP_TW}\/%{HP_TC}\/%{HP_TR}\/%{HP_TA} %{HP_STATUS_CODE} %{HP_BYTES_READ} %{HP_CAP_REQ_COOKIE} %{HP_CAP_RES_COOKIE} %{HP_TERM_STATE} %{HP_ACT_CONN}\/%{HP_FE_CONN}\/%{HP_BE_CONN}\/%{HP_SERVER_CONN}\/%{HP_RETRIES} %{HP_SRV_QUE}\/%{HP_BACK_QUE} \\{%{HP_CREQH}\\} \"%{HP_HTTP_REQUEST}\" HP_HTTP_MSG3 %{HP_IP}:%{HP_PORT} \\[%{HP_DATE:[log_time]}\\] %{HP_FRONT} %{HP_BACK}\/%{HP_SERVER_NAME} %{HP_TRF}\/%{HP_TW}\/%{HP_TC}\/%{HP_TR}\/%{HP_TA} %{HP_STATUS_CODE} %{HP_BYTES_READ} %{HP_CAP_REQ_COOKIE} %{HP_CAP_RES_COOKIE} %{HP_TERM_STATE} %{HP_ACT_CONN}\/%{HP_FE_CONN}\/%{HP_BE_CONN}\/%{HP_SERVER_CONN}\/%{HP_RETRIES} %{HP_SRV_QUE}\/%{HP_BACK_QUE} \"%{HP_HTTP_REQUEST}\" HP_HTTP_MSG4 %{HP_IP}:%{HP_PORT} \\[%{HP_DATE:[log_time]}\\] %{HP_FRONT} %{HP_BACK}\/%{HP_SERVER_NAME} %{HP_TRF}\/%{HP_TW}\/%{HP_TC}\/%{HP_TR}\/%{HP_TA} %{HP_STATUS_CODE} %{HP_BYTES_READ} %{HP_CAP_REQ_COOKIE} %{HP_CAP_RES_COOKIE} %{HP_TERM_STATE} %{HP_ACT_CONN}\/%{HP_FE_CONN}\/%{HP_BE_CONN}\/%{HP_SERVER_CONN}\/%{HP_RETRIES} %{HP_SRV_QUE}\/%{HP_BACK_QUE} \"%{HP_HTTP_REQUEST_STRIPPED} HP_HTTP_MSG5 %{HP_IP}:%{HP_PORT} \\[%{HP_DATE:[log_time]}\\] %{HP_FRONT} %{HP_BACK}\/%{HP_SERVER_NAME} %{HP_TRF}\/%{HP_TW}\/%{HP_TC}\/%{HP_TR}\/%{HP_TA} %{HP_STATUS_CODE} %{HP_BYTES_READ} %{HP_CAP_REQ_COOKIE} %{HP_CAP_RES_COOKIE} %{HP_TERM_STATE} %{HP_ACT_CONN}\/%{HP_FE_CONN}\/%{HP_BE_CONN}\/%{HP_SERVER_CONN}\/%{HP_RETRIES} %{HP_SRV_QUE}\/%{HP_BACK_QUE} \\{%{HP_CREQH_GREED} HP_TCP_MSG1 %{HP_IP}:%{HP_PORT} \\[%{HP_DATE:[log_time]}\\] %{HP_FRONT} %{HP_BACK}\/%{HP_SERVER_NAME} %{HP_TW}\/%{HP_TC}\/%{HP_TT} %{HP_BYTES_READ} %{HP_TERMINATION_STATE} %{HP_ACT_CONN}\/%{HP_FE_CONN}\/%{HP_BE_CONN}\/%{HP_SERVER_CONN}\/%{HP_RETRIES} %{HP_SRV_QUE}\/%{HP_BACK_QUE} HP_LOG_MSG1 %{HP_IP}:%{HP_PORT} \\[%{HP_DATE:[log_time]}\\] %{HP_LOG}  HP_GLOBAL_MSG1 Server %{HP_BACK}\/%{HP_SERVER_NAME} is %{HP_STATE},%{SPACE}%{HP_LOG} HP_GLOBAL_MSG2 \\[%{HP_LOG_LEVEL}\\]%{SPACE}\\(%{HP_PID}\\)%{SPACE}:%{SPACE}%{HP_GLOBAL_MSG1} HP_GLOBAL_MSG3 \\[%{HP_LOG_LEVEL}\\]%{SPACE}\\(%{HP_PID}\\)%{SPACE}:%{SPACE}%{HP_LOG} HP_GLOBAL_MSG4 %{HP_LOGS_WORD_START}%{SPACE}%{HP_LOG}<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0412\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u044d\u0442\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043d\u0430\u00a0HAproxy \u2116\u00a01, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0438\u0448\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 2\u00a0\u0442\u044b\u0441. \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432\u00a0\u043c\u0438\u043d\u0443\u0442\u0443. \u0412\u0441\u0451 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u0432\u0441\u0435 \u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0438 \u0445\u043b\u043e\u043f\u0430\u043b\u0438 \u0432\u00a0\u043b\u0430\u0434\u043e\u0448\u0438. \u041f\u0440\u0430\u0432\u0434\u0430, \u0432\u044b\u0440\u043e\u0441 \u0433\u0440\u0430\u0444\u0438\u043a, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439:<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 Grok \u043d\u0430 HAproxy \u21161<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u0430\u00a0\u043d\u0435\u0433\u043e \u043d\u0435\u00a0\u0441\u0440\u0430\u0437\u0443 \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0438 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0\u043b\u043e\u0433\u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u043b\u0438 \u0432\u00a0OpenSearch \u0441\u00a0\u043f\u0440\u0435\u0436\u043d\u0435\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e. \u0410\u00a0\u0437\u0440\u044f, \u0432\u0435\u0434\u044c \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0432 3\u20134\u00a0\u0440\u0430\u0437\u0430!<\/p>\n<p>\u041f\u043e\u0448\u043b\u0438 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u00a0HAproxy \u2116\u00a02, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0438\u0448\u0435\u0442 \u0443\u0436\u0435 120 \u0442\u044b\u0441. \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432\u00a0\u043c\u0438\u043d\u0443\u0442\u0443. \u0422\u0443\u0442-\u0442\u043e \u043d\u0430\u0441 \u0438 \u0436\u0434\u0430\u043b\u043e \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0435: \u043f\u043e\u0441\u043b\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0443\u043b\u0435\u0442\u0435\u043b\u0430 \u0432\u00a0\u043a\u043e\u0441\u043c\u043e\u0441, \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0448\u0438\u0441\u044c \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0432 40\u00a0\u0440\u0430\u0437!<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 Grok \u043d\u0430 HAproxy \u21162<\/figcaption><\/div>\n<\/figure>\n<p>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0443\u043f\u0430\u043b\u0430 \u0434\u043e 20 \u0442\u044b\u0441. \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443:<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432 Grok \u043d\u0430 HAproxy \u21162<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e worker&#8217;\u043e\u0432 \u043d\u0430 Logstash. \u0420\u0430\u043d\u044c\u0448\u0435 \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0441\u044f \u043e\u0434\u0438\u043d, \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043b\u0438 12. \u041f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0432\u044b\u0440\u043e\u0441\u043b\u043e \u043d\u0430 12 \u044f\u0434\u0435\u0440, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0434\u043e 100 \u0442\u044b\u0441. \u0432 \u043c\u0438\u043d\u0443\u0442\u0443, \u043d\u043e \u044d\u0442\u043e\u0433\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0431\u044b\u043b\u043e \u043c\u0430\u043b\u043e, \u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043d\u0430 Logstash \u043a\u043e\u043d\u0447\u0438\u043b\u0438\u0441\u044c. \u0421\u0442\u0430\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0442\u0430\u043a \u0436\u0438\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f, Grok \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043f\u0440\u043e\u0436\u043e\u0440\u043b\u0438\u0432\u044b\u0439 \u043f\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c. \u041e\u0442\u043a\u0430\u0442\u0438\u043b\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0438 \u043f\u043e\u0448\u043b\u0438 \u0434\u0443\u043c\u0430\u0442\u044c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u043d\u0435 \u043f\u043e\u043a\u0443\u043f\u0430\u044f \u0435\u0449\u0451 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e VM \u043f\u043e\u0434 Logstash.<\/p>\n<h2>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u0444\u0438\u043b\u044c\u0442\u0440 Dissect<\/h2>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a\u00a0\u043f\u0430\u0440\u0441\u0438\u0442\u044c \u043d\u0430\u0434\u043e, \u043d\u043e\u00a0Grok \u043d\u0435\u00a0\u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0430\u00a0\u043a\u0430\u043a\u0438\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0435\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b \u0432\u00a0Logstash? \u0418 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438 Dissect. \u042d\u0442\u043e \u0444\u0438\u043b\u044c\u0442\u0440-\u0442\u043e\u043a\u0435\u043d\u0438\u0437\u0430\u0442\u043e\u0440. \u0422\u043e\u043a\u0435\u043d\u0438\u0437\u0430\u0446\u0438\u044f\u00a0\u2014 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432\u00a0\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u00a0\u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u0443\u044f\u0441\u044c \u043d\u0430\u00a0\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0432\u00a0\u044d\u0442\u043e\u043c \u0441\u0430\u043c\u043e\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u0435.<\/p>\n<p>Dissect\u00a0\u0432\u00a0\u0440\u0430\u0437\u044b\u00a0\u0431\u044b\u0441\u0442\u0440\u0435\u0435 Grok, \u043d\u043e\u00a0\u0435\u0441\u0442\u044c \u0438 \u043b\u043e\u0436\u043a\u0430 \u0434\u0451\u0433\u0442\u044f: Dissect \u043d\u0435\u00a0\u0443\u043c\u0435\u0435\u0442 \u0432\u00a0\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u043d\u0435\u00a0\u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0451\u0442 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043d\u0435\u00a0\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b (\u0448\u0430\u0431\u043b\u043e\u043d \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0434\u0438\u043d). \u0412\u00a0\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e\u0442 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0434\u0451\u0436\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0442\u0441\u044f. \u0414\u0435\u043b\u043e \u0432\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e\u00a0\u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u043d\u0435\u00a0\u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u0434\u00a0\u0448\u0430\u0431\u043b\u043e\u043d \u0445\u043e\u0442\u044f\u00a0\u0431\u044b \u043e\u0434\u043d\u0438\u043c \u043f\u043e\u043b\u0435\u043c \u0438\u043b\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c, \u0442\u043e \u043d\u0435\u00a0\u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0432\u0435\u0441\u044c \u043b\u043e\u0433.<\/p>\n<p>\u041d\u0430\u0431\u0440\u043e\u0441\u0430\u043b\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Grok, \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 Dissect. \u0427\u0438\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0445\u0443\u0434\u0448\u0438\u043b\u0430\u0441\u044c, \u043d\u043e \u0447\u0442\u043e \u043f\u043e\u0434\u0435\u043b\u0430\u0442\u044c:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>filter {     dissect {         mapping =&gt; {             \"message\" =&gt; \"%{client_ip}:%{client_port} [%{log_time}] %{log_text}\"         }     }     if [log_text] {         dissect {             mapping =&gt; {                 \"log_text\" =&gt; \"%{frontend_name} %{backend_name}\/%{server_name} %{TR_time_receive_full_request}\/%{Tw_queues_waiting_connection}\/%{Tc_establish_tcp_connection}\/%{Tr_response_time}\/%{Ta_total_request_time} %{status_code} %{bytes_read} %{captured_request_cookie} %{captured_response_cookie} %{termination_state_with_cookie_status} %{active_connections}\/%{front_connections}\/%{back_connections}\/%{server_conn}\/%{retries} %{server_queue}\/%{backend_queue} %{http1}\"             }         }     }     if [log_text] and \"_dissectfailure\" in [tags] {         dissect {             remove_tag =&gt; [\"_dissectfailure\"]             mapping =&gt; {                 \"log_text\" =&gt; \"%{frontend_name} %{backend_name}\/%{server_name} %{Tw_queues_waiting_connection}\/%{Tc_establish_tcp_connection}\/%{Tt_total_time} %{bytes_read} %{termination_state} %{active_connections}\/%{front_connections}\/%{back_connections}\/%{server_conn}\/%{retries} %{server_queue}\/%{backend_queue}\"             }         }     }     if [log_text] and \"_dissectfailure\" in [tags] {         dissect {             remove_tag =&gt; [\"_dissectfailure\"]             mapping =&gt; {                 \"log_text\" =&gt; \"%{log_message}\"             }         }     }     if \"_dissectfailure\" in [tags] {         dissect {             mapping =&gt; {                 \"message\" =&gt; \"%{log_message}\"             }         }     }     if [http1] {         dissect {             remove_tag =&gt; [\"_dissectfailure\"]             mapping =&gt; {                 \"http1\" =&gt; '%{captured_request_headers} %{captured_request_headers} \"%{http_request_method}<\/code><\/pre>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-431361","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/431361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=431361"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/431361\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=431361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=431361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=431361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}