{"id":42,"date":"2024-08-03T20:34:43","date_gmt":"2024-08-03T17:34:43","guid":{"rendered":"https:\/\/casp.ru\/?p=42"},"modified":"2024-08-03T20:35:32","modified_gmt":"2024-08-03T17:35:32","slug":"json-over-rsyslog-to-elasticsearch","status":"publish","type":"post","link":"https:\/\/casp.ru\/?p=42","title":{"rendered":"\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 json \u0447\u0435\u0440\u0435\u0437 rsyslog \u0432 elasticsearch"},"content":{"rendered":"\n<h1>\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 json \u0447\u0435\u0440\u0435\u0437 rsyslog \u0432 elasticsearch<\/h1>\n\u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0448\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u044b\u043b\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043a\u0430\u043a \u0437\u0430\u0442\u043e\u043b\u043a\u0430\u0442\u044c \u0432 elasticsearch \u0434\u0430\u043d\u043d\u044b\u0435 syslog. \u041d\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0433\u0440\u0443\u0434\u044b \u043b\u043e\u0433\u043e\u0432 \u043e\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432, \u0431\u0435\u0433\u0430\u0442\u044c \u043f\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c \u043d\u0435 \u043f\u043e \u0434\u0436\u0430\u0434\u0430\u0439\u0441\u043a\u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 syslog \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043e\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 elasticsearch, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u043c \u043a\u0438\u0431\u0430\u043d\u043e\u0439. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e \u0442\u0430\u043a \u0436\u0435 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c\u00a0\u0442\u0443\u0434\u0430 \u0436\u0435 \u043b\u043e\u0433\u0438 docker \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432. \u0421\u0443\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0430 &#8212; \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 syslog \u043f\u0438\u0448\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u00a0\u0432 \u043d\u0435\u0433\u043e, \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0438 \u0431\u044b\u0441\u0442\u0440\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f. \u0414\u0430\u043b\u044c\u0448\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0433\u0434\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0435\u0433\u043e \u0440\u0430\u0437\u0431\u043e\u0440 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0432 \u044d\u043b\u0430\u0441\u0442\u0438\u043a. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u044d\u0442\u043e\u0442 \u043f\u0440\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 100% \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u044c (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f tcp) \u00a0\u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u0430\u0440\u0443 \u0441\u0435\u043a\u0443\u043d\u0434 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0430\u0436\u0435 \u043d\u0430 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0445 \u043a\u0430\u043d\u0430\u043b\u0430\u0445.\n\n\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u044b\u043b\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u0434\u043b\u044f \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u00a0\u043a\u043e\u0440\u043e\u0442\u043a\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044e. \u0422\u0430\u043a \u0436\u0435 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0434\u043e\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430\u043c\u0438 \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0433\u0438 \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u043b\u043e\u0433\u043e\u0432. \u041c\u044b \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438\u0441\u044c \u0432\u0441\u0435 \u0442\u0435\u0433\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441 docker_app_ &#8212; \u043f\u043e\u0437\u0436\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u044d\u0442\u043e\u0442 \u0442\u0435\u0433 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.\n\n\u0414\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043b\u043e\u0433\u043e\u0432 \u043d\u0435\u043e\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u00a0\/etc\/rsyslog.d\/rsyslog-server.conf \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c:\n<div id=\\\"crayon-580103acf170f643458250-1\\\" class=\\\"crayon-line\\\">\n<pre class=\\\"lang:sh decode:true\\\">$ActionQueueType Direct\n$ActionResumeRetryCount -1 #\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\n$ActionQueueSaveOnShutdown on # \u041f\u0440\u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0430 \u0434\u0438\u0441\u043a\n*.* @@syslogserver.casp.ru\/old:514<\/pre>\n<\/div>\n\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c rsyslogd.\n\n&nbsp;\n\n\u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u0422\u0443\u0442 \u0434\u0432\u0430 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f:\n<ul>\n \t<li>\u0432\u0430\u043b\u0438\u0434\u043d\u044b\u0439 json<\/li>\n \t<li>\u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043f\u043e\u043b\u044f @timestamp, \u044d\u0442\u043e \u0434\u0430\u0442\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 rfc3999 (<var class=\\\"fieldsynopsis_varname\\\"><a href=\\\"http:\/\/php.net\/manual\/ru\/class.datetime.php#datetime.constants.rfc3339\\\"><var class=\\\"varname\\\">RFC3339<\/var><\/a><\/var> <span class=\\\"initializer\\\">= \\&#187;Y-m-d\\\\TH:i:sP\\&#187;<\/span> )<\/li>\n<\/ul>\n\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0445\u043f \u043a\u043e\u0434\u0430 \u0434\u043b\u044f\u00a0\u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432 \u0441\u0438\u0441\u043b\u043e\u0433:\n<pre class=\\\"lang:sh decode:true\\\">&lt;?php\nopenlog(\\\"docker_app_pophp7_error_testjson\\\", LOG_PID | LOG_PERROR, LOG_LOCAL0);\n\n$data[\\'@timestamp\\'] = date(\\'c\\');\n$data[\\'text\\'] = \\'test message\\';\n$data[\\'host\\'] = \\'host1\\';\nsyslog(LOG_ERR, json_encode($data));\n\n?&gt;<\/pre>\n&nbsp;\n\n\u0414\u0430\u043b\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044e \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u044d\u0442\u043e \u0432 \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0438 \u043d\u0435 \u043d\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f, \u0438 \u0434\u0430\u043b\u0435\u0435 \u0438\u0434\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u0435\u0441\u043f\u043b\u0435\u0439\u0442\u043e\u0432 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0435\u0433\u043e syslog \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u044d\u043b\u0430\u0441\u0442\u0438\u043a \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0441\u0430\u043c\u043e\u0433\u043e \u0441\u0438\u0441\u043b\u043e\u0433 \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 json \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u044e\u0442 \u043d\u0430\u0448\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b.\n<pre class=\\\"lang:sh decode:true\\\">$ModLoad imudp\n$UDPServerRun 514\n$ModLoad imtcp\n$InputTCPServerRun 514\n\n$PreserveFQDN on\n\n$template RemoteHost,\\\"\/var\/log\/remote\/%HOSTNAME%\/syslog.log\\\"\n\n\nmodule(load=\\\"omelasticsearch\\\")\n\ntemplate(name=\\\"plain-syslog\\\"\ntype=\\\"list\\\") {\nconstant(value=\\\"{\\\")\nconstant(value=\\\"\\\\\\\"@timestamp\\\\\\\":\\\\\\\"\\\") property(name=\\\"timereported\\\" dateFormat=\\\"rfc3339\\\")\nconstant(value=\\\"\\\\\\\",\\\\\\\"host\\\\\\\":\\\\\\\"\\\") property(name=\\\"hostname\\\")\nconstant(value=\\\"\\\\\\\",\\\\\\\"severity\\\\\\\":\\\\\\\"\\\") property(name=\\\"syslogseverity-text\\\")\nconstant(value=\\\"\\\\\\\",\\\\\\\"facility\\\\\\\":\\\\\\\"\\\") property(name=\\\"syslogfacility-text\\\")\nconstant(value=\\\"\\\\\\\",\\\\\\\"tag\\\\\\\":\\\\\\\"\\\") property(name=\\\"syslogtag\\\" format=\\\"json\\\")\nconstant(value=\\\"\\\\\\\",\\\\\\\"message\\\\\\\":\\\\\\\"\\\") property(name=\\\"msg\\\" format=\\\"json\\\")\nconstant(value=\\\"\\\\\\\"}\\\")\n}\n\ntemplate(name=\\\"syslog-json\\\"\ntype=\\\"list\\\") {\nconstant(value=\\\"syslogjson-\\\")\nproperty(name=\\\"timereported\\\" dateFormat=\\\"rfc3339\\\" position.from=\\\"1\\\" position.to=\\\"4\\\")\nconstant(value=\\\".\\\")\nproperty(name=\\\"timereported\\\" dateFormat=\\\"rfc3339\\\" position.from=\\\"6\\\" position.to=\\\"7\\\")\nconstant(value=\\\".\\\")\nproperty(name=\\\"timereported\\\" dateFormat=\\\"rfc3339\\\" position.from=\\\"9\\\" position.to=\\\"10\\\")\n}\ntemplate(name=\\\"syslog-index\\\"\ntype=\\\"list\\\") {\nconstant(value=\\\"syslog-\\\")\nproperty(name=\\\"timereported\\\" dateFormat=\\\"rfc3339\\\" position.from=\\\"1\\\" position.to=\\\"4\\\")\nconstant(value=\\\".\\\")\nproperty(name=\\\"timereported\\\" dateFormat=\\\"rfc3339\\\" position.from=\\\"6\\\" position.to=\\\"7\\\")\nconstant(value=\\\".\\\")\nproperty(name=\\\"timereported\\\" dateFormat=\\\"rfc3339\\\" position.from=\\\"9\\\" position.to=\\\"10\\\")\n}\n\ntemplate (name=\\\"rawmessage-json\\\" type=\\\"string\\\" string=\\\"%msg%\\\")<\/pre>\n\u0418 \u043a\u0430\u043a \u043a\u0443\u043b\u044c\u043c\u0438\u043d\u0430\u0446\u0438\u044f &#8212; \u0440\u0430\u0437\u0431\u043e\u0440 \u0438 \u0440\u0430\u0441\u043f\u0438\u0445\u0438\u0432\u0430\u043d\u0438\u0435 \u043b\u043e\u0433\u043e\u0432 \u043f\u043e \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0438 \u0440\u0430\u0437\u043d\u044b\u043c \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c \u044d\u043b\u0430\u0441\u0442\u0438\u043a\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u0435\u0433\u0430.\n<pre class=\\\"lang:sh decode:true\\\">if $programname startswith \\'docker_app\\' or $syslogtag startswith \\'docker_app\\' then {\n*.* action(type=\\\"omelasticsearch\\\"\nserver=\\\"127.0.0.1\\\" # destination Elasticsearch host\nserverport=\\\"9200\\\" # and port\ntemplate=\\\"rawmessage-json\\\"\nsearchindex=\\\"syslog-json\\\"\ndynSearchIndex=\\\"on\\\")\n} else {\n*.* action(type=\\\"omelasticsearch\\\"\nserver=\\\"127.0.0.1\\\" # destination Elasticsearch host\nserverport=\\\"9200\\\" # and port\ntemplate=\\\"plain-syslog\\\"\nsearchIndex=\\\"syslog-index\\\"\ndynSearchIndex=\\\"on\\\")\n*.* ?RemoteHost\n}<\/pre>\n\u041e\u0431\u044b\u0447\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043c\u044b \u043a\u043b\u0430\u0434\u0435\u043c \u0432 \u0438\u043d\u0434\u0435\u043a\u0441 <strong>syslog<\/strong> \u0430 json \u0432 \u0438\u043d\u0434\u0435\u043a\u0441 <strong>syslogjson<\/strong>, \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u044b \u0431\u044b\u043b\u0438 \u0437\u0430\u0434\u0430\u043d\u044b \u0432\u044b\u0448\u0435.\n\n&nbsp;\n\n\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043c\u043e\u0436\u0435\u043c \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 \u043a\u0438\u0431\u0430\u043d\u0435.\n\n&nbsp;\n\n\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438:\n<ul>\n \t<li>\u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0434\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043f\u043e\u043b\u0435 @timestamp \u0432 json, \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u043a\u0438\u0431\u0430\u043d\u0430 \u043d\u0435 \u0434\u0430\u0441\u0442 \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u0432 \u0441\u0435\u0431\u044f \u043d\u043e\u0432\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441.<\/li>\n \t<li>\u0414\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043f\u0440\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0430\u0434\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u00a0\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 $ActionQueueType Direct<\/li>\n<\/ul>\n&nbsp;\n\n&nbsp;\n\n&nbsp;\n\n&nbsp;\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 json \u0447\u0435\u0440\u0435\u0437 rsyslog \u0432 elasticsearch \u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0448\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u044b\u043b\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043a\u0430\u043a \u0437\u0430\u0442\u043e\u043b\u043a\u0430\u0442\u044c \u0432 elasticsearch \u0434\u0430\u043d\u043d\u044b\u0435 syslog. \u041d\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0433\u0440\u0443\u0434\u044b \u043b\u043e\u0433\u043e\u0432 \u043e\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432, \u0431\u0435\u0433\u0430\u0442\u044c \u043f\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c \u043d\u0435 \u043f\u043e \u0434\u0436\u0430\u0434\u0430\u0439\u0441\u043a\u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry","category-1","entry"],"_links":{"self":[{"href":"https:\/\/casp.ru\/index.php?rest_route=\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/casp.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/casp.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/casp.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/casp.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=42"}],"version-history":[{"count":1,"href":"https:\/\/casp.ru\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":43,"href":"https:\/\/casp.ru\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions\/43"}],"wp:attachment":[{"href":"https:\/\/casp.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/casp.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/casp.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}