{"id":3444,"date":"2023-05-02T04:42:16","date_gmt":"2023-05-02T04:42:16","guid":{"rendered":"https:\/\/www.ablenet.co.th\/?p=3444"},"modified":"2023-05-23T12:47:36","modified_gmt":"2023-05-23T12:47:36","slug":"rsyslog","status":"publish","type":"post","link":"https:\/\/www.ablenet.co.th\/en\/2023\/05\/02\/rsyslog\/","title":{"rendered":"\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 RSYSLOG \u0e1a\u0e19 CentOS 8"},"content":{"rendered":"<p>RSYSLOG \u0e40\u0e1b\u0e47\u0e19 Log Server \u0e1f\u0e23\u0e35\u0e15\u0e31\u0e27\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e17\u0e35\u0e48\u0e19\u0e34\u0e22\u0e21\u0e43\u0e0a\u0e49\u0e01\u0e31\u0e19\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e41\u0e1e\u0e23\u0e48\u0e2b\u0e25\u0e32\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33 Log Server \u0e43\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49 \u0e40\u0e23\u0e32\u0e08\u0e30\u0e21\u0e32\u0e14\u0e39\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 RSYSLOG \u0e1a\u0e19 CentOS 8 \u0e01\u0e31\u0e19 \u0e41\u0e15\u0e48\u0e01\u0e48\u0e2d\u0e19\u0e2d\u0e37\u0e48\u0e19 \u0e15\u0e49\u0e2d\u0e07 Setup LAMP Stack \u0e43\u0e2b\u0e49\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e01\u0e48\u0e2d\u0e19 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e14\u0e39\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48\u0e25\u0e34\u0e49\u0e07\u0e19\u0e35\u0e49\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22 <a href=\"http:\/\/www.ablenet.co.th\/en\/2021\/06\/28\/lamp-stack\/\">http:\/\/www.ablenet.co.th\/2021\/06\/28\/lamp-stack\/ <\/a> \u0e16\u0e49\u0e32\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e41\u0e25\u0e49\u0e27 \u0e21\u0e32\u0e25\u0e38\u0e22\u0e01\u0e31\u0e19\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22 <strong>Step 0 :<\/strong> \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 package nettool \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19 \u0e40\u0e0a\u0e48\u0e19\u00a0 netstat , ifconfig<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>yum install net-tools*<\/code><\/pre>\r\n\r\n<p><strong>Step 1<\/strong> : \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 rsyslog<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>yum install rsyslog<\/code><\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-5205\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/1-1-3.png\" alt=\"\" width=\"811\" height=\"251\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/1-1-3.png 811w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/1-1-3-300x93.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/1-1-3-768x238.png 768w\" sizes=\"(max-width: 811px) 100vw, 811px\" \/><\/figure>\r\n\r\n<p><strong>Step 2 :<\/strong> Restart \u0e41\u0e25\u0e30 \u0e2a\u0e31\u0e48\u0e07\u0e43\u0e2b\u0e49 rsyslog \u0e17\u0e33\u0e07\u0e32\u0e19\u0e40\u0e21\u0e37\u0e48\u0e2d CentOS Power ON<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>systemctl restart rsyslog\r\nsystemctl enable rsyslog<\/code><\/pre>\r\n\r\n<p><strong>Step 4 :<\/strong> \u0e17\u0e14\u0e2a\u0e2d\u0e1a \u0e2a\u0e48\u0e07 Log \u0e44\u0e1b\u0e17\u0e35\u0e48 rsyslog \u0e42\u0e14\u0e22 Default \u0e44\u0e1f\u0e25\u0e4c \u0e08\u0e30\u0e16\u0e39\u0e01\u0e40\u0e01\u0e47\u0e1a\u0e2d\u0e22\u0e39\u0e48\u0e17\u0e35\u0e48 <strong>\/var\/log\/messages<\/strong> ** tail -f \u0e04\u0e37\u0e2d \u0e01\u0e32\u0e23\u0e40\u0e1b\u0e34\u0e14\u0e2d\u0e48\u0e32\u0e19\u0e44\u0e1f\u0e25\u0e4c\u0e41\u0e1a\u0e1a Railtime<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>cd \/var\/log\r\nlogger \"test rsyslog\"\r\ntail -f \/var\/log\/messages<\/code><\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"alignnone size-full wp-image-5206\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/2-1-2.png\" alt=\"\" width=\"1002\" height=\"241\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/2-1-2.png 1002w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/2-1-2-300x72.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/2-1-2-768x185.png 768w\" sizes=\"(max-width: 1002px) 100vw, 1002px\" \/><\/figure>\r\n\r\n<p><strong>Step 5 :<\/strong> \u0e40\u0e1b\u0e34\u0e14 Port TCP\/UDP \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e31\u0e1a\u0e44\u0e1f\u0e25\u0e4c\u0e08\u0e32\u0e01\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Client \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e41\u0e01\u0e49\u0e17\u0e35\u0e48\u0e44\u0e1f\u0e25\u0e4c rsyslog.conf -&gt; <strong>\/etc\/rsyslog.conf<\/strong><\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>vi \/etc\/rsyslog.conf<\/code><\/pre>\r\n\r\n<p>\u0e25\u0e1a Comment \u0e17\u0e35\u0e48\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e17\u0e35\u0e48 19,20,24,25<\/p>\r\n\r\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"alignnone size-full wp-image-5207\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/3-1-2.png\" alt=\"\" width=\"703\" height=\"362\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/3-1-2.png 703w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/3-1-2-300x154.png 300w\" sizes=\"(max-width: 703px) 100vw, 703px\" \/><\/figure>\r\n\r\n<p>Restart rsyslog<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>systemctl restart rsyslog<\/code><\/pre>\r\n\r\n<p><strong>Step 6 :<\/strong> \u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a Port \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e40\u0e1b\u0e34\u0e14 \u0e43\u0e19 Step \u0e17\u0e35\u0e48 5<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>netstat -tuanp | grep rsyslog<\/code><\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5208\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/4-1-2.png\" alt=\"\" width=\"688\" height=\"137\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/4-1-2.png 688w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/4-1-2-300x60.png 300w\" sizes=\"(max-width: 688px) 100vw, 688px\" \/><\/figure>\r\n\r\n<p><strong>Step 7 :<\/strong> \u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e2a\u0e48\u0e07 Log \u0e21\u0e32\u0e17\u0e35\u0e48 rsyslog \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 Kiwi syslog generator \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48 <a href=\"https:\/\/support.solarwinds.com\/SuccessCenter\/s\/article\/Troubleshooting-Tools-Kiwi-Syslog-Generator-Tool?language=en_US\">&gt; Link &lt;<\/a> <strong>Step 7.1<\/strong> \u0e2a\u0e31\u0e48\u0e07\u0e2d\u0e48\u0e32\u0e19\u0e44\u0e1f\u0e25\u0e4c messages \u0e41\u0e1a\u0e1a Rail Time<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>tail -f \/var\/log\/messages <\/code><\/pre>\r\n\r\n<p><strong>Step 7.2<\/strong> \u0e40\u0e1b\u0e34\u0e14\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 Kiwi Syslog Genterator \u0e41\u0e25\u0e30\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e41\u0e25\u0e30\u0e01\u0e14 \u0e2a\u0e48\u0e07 Log \u0e21\u0e32\u0e17\u0e35\u0e48 rsyslog<\/p>\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5209\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/5-1-2.png\" alt=\"\" width=\"661\" height=\"598\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/5-1-2.png 661w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/5-1-2-300x271.png 300w\" sizes=\"(max-width: 661px) 100vw, 661px\" \/><\/figure>\r\n\r\n<p><strong>Step 7.3<\/strong> \u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e04\u0e48\u0e32\u0e1a\u0e19\u0e44\u0e1f\u0e25\u0e4c messages<\/p>\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5210\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/6-1-1.png\" alt=\"\" width=\"932\" height=\"406\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/6-1-1.png 932w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/6-1-1-300x131.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/6-1-1-768x335.png 768w\" sizes=\"(max-width: 932px) 100vw, 932px\" \/><\/figure>\r\n\r\n<p><strong>Step 8 :<\/strong> Connect rsyslog with database <strong>Step 8.1<\/strong> \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 Package : rsyslog-mysql<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>yum install rsyslog-mysql<\/code><\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5211\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/7-1-1.png\" alt=\"\" width=\"1002\" height=\"258\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/7-1-1.png 1002w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/7-1-1-300x77.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/7-1-1-768x198.png 768w\" sizes=\"(max-width: 1002px) 100vw, 1002px\" \/><\/figure>\r\n\r\n<p><strong>Step 8.2<\/strong> \u0e17\u0e33\u0e01\u0e32\u0e23 Copy database template to MariaDB database<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>cd \/usr\/share\/doc\/rsyslog\/\r\nmysql -u root -p &lt; mysql-createDB.sql <\/code><\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5212\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/8-2.png\" alt=\"\" width=\"566\" height=\"126\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/8-2.png 566w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/8-2-300x67.png 300w\" sizes=\"(max-width: 566px) 100vw, 566px\" \/><\/figure>\r\n\r\n<p><strong>Step 8.3 :<\/strong> \u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a Database \u0e41\u0e25\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07 User \u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07 Database rsyslog \u0e42\u0e14\u0e22 Username = rsyslog , Password = Password<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>mysql -u root -p\r\nshow databases;\r\nGRANT ALL ON Syslog.* TO <strong><em>'rsyslog'<\/em><\/strong>@'%' IDENTIFIED BY '<strong><em>Password<\/em><\/strong>';<\/code><\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5213\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/9-2.png\" alt=\"\" width=\"586\" height=\"462\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/9-2.png 586w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/9-2-300x237.png 300w\" sizes=\"(max-width: 586px) 100vw, 586px\" \/><\/figure>\r\n\r\n<p><strong>Step 9 :<\/strong> Import syslog data\u00a0 to Database <strong>Step 9.1 :<\/strong> \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e40\u0e1e\u0e34\u0e34\u0e48\u0e21 Config \u0e43\u0e19\u0e44\u0e1f\u0e25\u0e4c rsyslog.conf<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>vi \/etc\/rsyslog.conf<\/code><\/pre>\r\n\r\n<p>\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14 38 , 39 \u0e42\u0e14\u0e22\u0e43\u0e2a\u0e48 Username \u0e41\u0e25\u0e30 Password \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e31\u0e49\u0e07\u0e43\u0e19\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 8.3<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>module(load=\"ommysql\")\r\n*.* :ommysql:localhost,Syslog,rsyslog,Password<\/code><\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5214\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/10-1-2.png\" alt=\"\" width=\"566\" height=\"376\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/10-1-2.png 566w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/10-1-2-300x199.png 300w\" sizes=\"(max-width: 566px) 100vw, 566px\" \/><\/figure>\r\n\r\n<p><strong>Step 9.2 :<\/strong> \u0e01\u0e32\u0e23\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a Database<\/p>\r\n\r\n<pre class=\"wp-block-code\"><code>mysql -u rsyslog -p\r\nshow databases;<\/code><\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5215\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/11-1-2.png\" alt=\"\" width=\"555\" height=\"278\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/11-1-2.png 555w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/11-1-2-300x150.png 300w\" sizes=\"(max-width: 555px) 100vw, 555px\" \/><\/figure>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>use Syslog\r\nshow tables;\r\ndesc SystemEvents;<\/code><\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5216\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/12-1-1.png\" alt=\"\" width=\"576\" height=\"463\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/12-1-1.png 576w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/12-1-1-300x241.png 300w\" sizes=\"(max-width: 576px) 100vw, 576px\" \/><\/figure>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>select ReceivedAt,Facility,Priority,FromHost,Message from SystemEvents;<\/code><\/pre>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5217\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/13-1-1.png\" alt=\"\" width=\"1000\" height=\"433\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/13-1-1.png 1000w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/13-1-1-300x130.png 300w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/13-1-1-768x333.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\r\n\r\n<p>\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32 Data \u0e08\u0e32\u0e01 rsyslog \u0e16\u0e39\u0e01 import \u0e40\u0e02\u0e49\u0e32\u0e21\u0e32\u0e17\u0e35\u0e48 Database \u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22 \u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e16\u0e31\u0e14\u0e44\u0e1b \u0e08\u0e30\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 Loganalyzer \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e17\u0e33\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a Web GUI \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e0a\u0e48\u0e27\u0e22\u0e43\u0e2b\u0e49\u0e14\u0e39\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e14\u0e49\u0e07\u0e48\u0e32\u0e22\u0e02\u0e36\u0e49\u0e19 \u0e15\u0e34\u0e14\u0e15\u0e32\u0e21\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01\u0e25\u0e34\u0e49\u0e07\u0e19\u0e35\u0e49\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a <a href=\"https:\/\/www.ablenet.co.th\/en\/2021\/06\/28\/install-loganalyzer\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.ablenet.co.th\/2021\/06\/28\/install-loganalyzer\/<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>RSYSLOG \u0e40\u0e1b\u0e47\u0e19 Log Server \u0e1f\u0e23\u0e35\u0e15\u0e31\u0e27\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e17\u0e35\u0e48\u0e19\u0e34\u0e22\u0e21\u0e43\u0e0a\u0e49\u0e01\u0e31\u0e19\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e41\u0e1e\u0e23\u0e48\u0e2b\u0e25\u0e32\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33 Log Server \u0e43\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49 \u0e40\u0e23\u0e32\u0e08\u0e30\u0e21\u0e32\u0e14\u0e39\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 RSYSLOG \u0e1a\u0e19 CentOS 8 \u0e01\u0e31\u0e19 \u0e41\u0e15\u0e48\u0e01\u0e48\u0e2d\u0e19\u0e2d\u0e37\u0e48\u0e19 \u0e15\u0e49\u0e2d\u0e07 Setup LAMP Stack \u0e43\u0e2b\u0e49\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e01\u0e48\u0e2d\u0e19 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e14\u0e39\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48\u0e25\u0e34\u0e49\u0e07\u0e19\u0e35\u0e49\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22 http:\/\/www.ablenet.co.th\/2021\/06\/28\/lamp-stack\/ \u0e16\u0e49\u0e32\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e41\u0e25\u0e49\u0e27 \u0e21\u0e32\u0e25\u0e38\u0e22\u0e01\u0e31\u0e19\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22 Step 0 : \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 package nettool \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19 \u0e40\u0e0a\u0e48\u0e19\u00a0 netstat , ifconfig Step 1 : \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 rsyslog Step 2 : Restart \u0e41\u0e25\u0e30 \u0e2a\u0e31\u0e48\u0e07\u0e43\u0e2b\u0e49 rsyslog \u0e17\u0e33\u0e07\u0e32\u0e19\u0e40\u0e21\u0e37\u0e48\u0e2d CentOS Power ON Step 4 : \u0e17\u0e14\u0e2a\u0e2d\u0e1a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":3445,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[231,238,232,239],"class_list":["post-3444","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-article","tag-centos8","tag-linux","tag-log-server","tag-rsyslog"],"_links":{"self":[{"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts\/3444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/comments?post=3444"}],"version-history":[{"count":3,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts\/3444\/revisions"}],"predecessor-version":[{"id":5220,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts\/3444\/revisions\/5220"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/media\/3445"}],"wp:attachment":[{"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/media?parent=3444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/categories?post=3444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/tags?post=3444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}