ติดตั้ง syslog-ng

sirom
รูปภาพของ sirom
Joined: 30 มิ.ย. 2006
Points: 128
User offline. Last seen 3 weeks 3 days ago.
ขอคำแนะนำวิธีการติดตั้ง syslog-ng ใน sis5.5.5  และ sis 6 ด้วยครับ จะส่ง log ไปเก็บที่ Centralized log sever ด้วย syslog-ng ครับ ขอบคุณครับ




ฟ้าจะเป็นสีทองผ่องอำไพ เมื่อ Opensource ได้เป็นใหญ่ใน Thailand

somdej
รูปภาพของ somdej
Joined: 26 ม.ค. 2004
Points: 5107
User offline. Last seen 6 hours 40 min ago.
เอ syslog ก็ส่งได้นี่ครับ

ที่นี่ เราก็ใช้ syslog ส่งไป logserver ของ nectec ครับ อ้อ opentle นี่ก็ใช้ syslog ครับ 

ส่วน ng นั้น เห็นน้องๆ บอกว่าเป็นของใหม่ linux ตัวใหม่ๆ ก็จะขยับไปใช้ แต่ก็ยังไม่มีใครบอกว่าต่างกันตรงไหนอย่างไรหนะครับ ก็เลยยังไม่มีใครลอง

ถ้าจะลอง ก็แนะนำให้ search ว่า set อย่างไรกับ fc7 (555) หรือ debian 4 (6) ดูครับ :)





904 on MacBook AL แจ๋วสุดๆ Nvidia เนี่ย :)
คำแนะนำสำหรับมือใหม่ครับ เชิญที่นี่ครับ -> http://wiki.opentle.org/Newbie_README
คำแนะนำสำหรับผู้สนใจลินุกซ์ซิส (มือใหม่) เชิญที่นี่ครับ -> http://wiki.opentle.org/SIS-NewBie
คำแนะนำเรื่องความปลอดภัยของ LinuxSIS เชิญที่นี่ครับ ->  http://wiki.opentle.org/SIS5-Security
Upgrade - Bug fix ของ SIS เชิญที่นี่ครับ -> http://wiki.opentle.org/SIS-Upgrade-Bugfix

sirom
รูปภาพของ sirom
Joined: 30 มิ.ย. 2006
Points: 128
User offline. Last seen 3 weeks 3 days ago.
พอดีผมมีห
พอดีผมมีหนังสือ การทำ Centralized log server ด้วย syslog-ng อยู่ครับ ก็เลยอยากลองดูครับ




ฟ้าจะเป็นสีทองผ่องอำไพ เมื่อ Opensource ได้เป็นใหญ่ใน Thailand

somdej
รูปภาพของ somdej
Joined: 26 ม.ค. 2004
Points: 5107
User offline. Last seen 6 hours 40 min ago.
เอ ไม่ทราบลอง search หรือยังครับ

 aptitude search syslog

หรือลอง aptitude search syslog-ng

ลองดูนะครับ

พอดีใช้ ut 804 มันมี ไม่แน่ใจ sis6 มีหรือไม่ (พอดีอยู่ในห้องประชุม ก็เลยลองกับเครื่องตัวเองครับ)

ใน 804 ไม่ได้ใช้ syslog-ng เหมือนกัน แต่ใช้ sysklogd ครับ เพียงแต่มี syslog-ng ไว้ให้ครับ

ลองดูนะครับ :)

 

 dej@Dej-UT804:~$ aptitude search syslog
p   cl-syslog                                    - Common Lisp syslog interface                           
p   inetutils-syslogd                            - System logging daemon                                  
p   liblogger-syslog-perl                        - Logger::Syslog -- an simple wrapper over Sys::Syslog fo
p   libparse-syslog-perl                         - Perl module for parsing syslog entries                 
p   libsys-syslog-perl                           - Perl interface to the UNIX syslog(3) calls             
p   libsyslog-ocaml                              - syslog routines for OCaml                              
p   libsyslog-ocaml-dev                          - syslog routines for OCaml                              
p   libsyslog-ruby                               - transitional dummy package                             
v   libsyslog-ruby1.8                            -                                                        
p   libunix-syslog-perl                          - Perl interface to the UNIX syslog(3) calls             
p   rsyslog                                      - enhanced multi-threaded syslogd                        
p   rsyslog-mysql                                - MySQL output plugin for rsyslog                        
p   syslog-ng                                    - Next generation logging daemon                         
p   syslog-summary                               - Summarize the contents of a syslog log file            
v   syslogd                                      -                                                        
p   syslogout                                    - Modularized system wide shell logout mechanism         
dej@Dej-UT804:~$ aptitude show syslogd
No current or candidate version found for syslogd
Package: syslogd
State: not a real package
Provided by: sysklogd





904 on MacBook AL แจ๋วสุดๆ Nvidia เนี่ย :)
คำแนะนำสำหรับมือใหม่ครับ เชิญที่นี่ครับ -> http://wiki.opentle.org/Newbie_README
คำแนะนำสำหรับผู้สนใจลินุกซ์ซิส (มือใหม่) เชิญที่นี่ครับ -> http://wiki.opentle.org/SIS-NewBie
คำแนะนำเรื่องความปลอดภัยของ LinuxSIS เชิญที่นี่ครับ ->  http://wiki.opentle.org/SIS5-Security
Upgrade - Bug fix ของ SIS เชิญที่นี่ครับ -> http://wiki.opentle.org/SIS-Upgrade-Bugfix

sirom
รูปภาพของ sirom
Joined: 30 มิ.ย. 2006
Points: 128
User offline. Last seen 3 weeks 3 days ago.
ลองแล้ว
ลองแล้ว ไม่มี syslog-ng ใน sis6ฺำBeta  ครับ




ฟ้าจะเป็นสีทองผ่องอำไพ เมื่อ Opensource ได้เป็นใหญ่ใน Thailand

somdej
รูปภาพของ somdej
Joined: 26 ม.ค. 2004
Points: 5107
User offline. Last seen 6 hours 40 min ago.
เอ apt-get update หรือยังครับ
:)




904 on MacBook AL แจ๋วสุดๆ Nvidia เนี่ย :)
คำแนะนำสำหรับมือใหม่ครับ เชิญที่นี่ครับ -> http://wiki.opentle.org/Newbie_README
คำแนะนำสำหรับผู้สนใจลินุกซ์ซิส (มือใหม่) เชิญที่นี่ครับ -> http://wiki.opentle.org/SIS-NewBie
คำแนะนำเรื่องความปลอดภัยของ LinuxSIS เชิญที่นี่ครับ ->  http://wiki.opentle.org/SIS5-Security
Upgrade - Bug fix ของ SIS เชิญที่นี่ครับ -> http://wiki.opentle.org/SIS-Upgrade-Bugfix

sirom
รูปภาพของ sirom
Joined: 30 มิ.ย. 2006
Points: 128
User offline. Last seen 3 weeks 3 days ago.
linuxsis:~# apt-get

linuxsis:~# apt-get update
Ign cdrom://[LinuxSIS 6.0 Beta - i386 CD Binary-1 20080711-09:45] etch Release.gpg
Ign cdrom://[LinuxSIS 6.0 Beta - i386 CD Binary-1 20080711-09:45] etch Release
Ign cdrom://[LinuxSIS 6.0 Beta - i386 CD Binary-1 20080711-09:45] etch/contrib Packages/DiffIndex
Ign cdrom://[LinuxSIS 6.0 Beta - i386 CD Binary-1 20080711-09:45] etch/main Packages/DiffIndex
Get:1 http://security.debian.org etch/updates Release.gpg [189B]      
Hit http://security.debian.org etch/updates Release                           
Ign http://security.debian.org etch/updates/main Packages/DiffIndex  
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex                                                                                                   
Hit http://security.debian.org etch/updates/main Packages                                                                                                                
Hit http://security.debian.org etch/updates/contrib Packages                                                                                                             
Get:2 http://linux.thai.net etch Release.gpg [386B]                                                                                                                      
Get:3 http://linux.thai.net etch Release [58.2kB]
Ign http://linux.thai.net etch Release                                                                                                                                   
Get:4 http://linux.thai.net etch/main Packages [4284kB]                                                                                                                  
Ign http://linux.thai.net etch/main Packages                                                                                                                             
Ign http://linux.thai.net etch/contrib Packages                                                                                                                          
Get:5 http://linux.thai.net etch/main Packages [5624kB]
Err http://linux.thai.net etch/main Packages                                                                                                                             
  Error reading from server. Remote end closed connection
Get:6 http://linux.thai.net etch/contrib Packages [71.8kB]                                                                                                               
Fetched 72.2kB in 3m43s (322B/s)               
Failed to fetch http://linux.thai.net/debian/dists/etch/main/binary-i386/Packages.gz  Error reading from server. Remote end closed connection
Reading package lists... Done
W: Couldn't stat source package list http://linux.thai.net etch/main Packages (/var/lib/apt/lists/linux.thai.net_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://linux.thai.net etch/main Packages (/var/lib/apt/lists/linux.thai.net_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.

Why???? 





ฟ้าจะเป็นสีทองผ่องอำไพ เมื่อ Opensource ได้เป็นใหญ่ใน Thailand

somdej
รูปภาพของ somdej
Joined: 26 ม.ค. 2004
Points: 5107
User offline. Last seen 6 hours 40 min ago.
ตกลงจะถามอะไรหรือเปล่าครับ

เห็นทิ้งท้ายว่า why

หรือแค่จะเล่าให้ฟัง :)





904 on MacBook AL แจ๋วสุดๆ Nvidia เนี่ย :)
คำแนะนำสำหรับมือใหม่ครับ เชิญที่นี่ครับ -> http://wiki.opentle.org/Newbie_README
คำแนะนำสำหรับผู้สนใจลินุกซ์ซิส (มือใหม่) เชิญที่นี่ครับ -> http://wiki.opentle.org/SIS-NewBie
คำแนะนำเรื่องความปลอดภัยของ LinuxSIS เชิญที่นี่ครับ ->  http://wiki.opentle.org/SIS5-Security
Upgrade - Bug fix ของ SIS เชิญที่นี่ครับ -> http://wiki.opentle.org/SIS-Upgrade-Bugfix

sirom
รูปภาพของ sirom
Joined: 30 มิ.ย. 2006
Points: 128
User offline. Last seen 3 weeks 3 days ago.
ถามครับ

ถามครับ ดูเหมือนการ Update มันจะติดตรงนี้ครับจะแก้ไขตรงไหนครับให้ Update ได้

Failed to fetch http://linux.thai.net/debian/dists/etch/main/binary-i386/Packages.gz  Error reading from server. Remote end closed connection
Reading package lists... Done
W: Couldn't stat source package list http://linux.thai.net etch/main Packages (/var/lib/apt/lists/linux.thai.net_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://linux.thai.net etch/main Packages (/var/lib/apt/lists/linux.thai.net_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead. 





ฟ้าจะเป็นสีทองผ่องอำไพ เมื่อ Opensource ได้เป็นใหญ่ใน Thailand

somdej
รูปภาพของ somdej
Joined: 26 ม.ค. 2004
Points: 5107
User offline. Last seen 6 hours 40 min ago.
ก็เขาแนะนำว่า

You may want to run apt-get update to correct these problems

ผมว่า ก็น่าจะลองเชื่อตามเขาแนะนำนะครับ

ถ้าทำไปแล้วยังติดอีก ก็ช่างมันครับ

ทำ step ต่อไปเลยดีกว่า :)





904 on MacBook AL แจ๋วสุดๆ Nvidia เนี่ย :)
คำแนะนำสำหรับมือใหม่ครับ เชิญที่นี่ครับ -> http://wiki.opentle.org/Newbie_README
คำแนะนำสำหรับผู้สนใจลินุกซ์ซิส (มือใหม่) เชิญที่นี่ครับ -> http://wiki.opentle.org/SIS-NewBie
คำแนะนำเรื่องความปลอดภัยของ LinuxSIS เชิญที่นี่ครับ ->  http://wiki.opentle.org/SIS5-Security
Upgrade - Bug fix ของ SIS เชิญที่นี่ครับ -> http://wiki.opentle.org/SIS-Upgrade-Bugfix

sirom
รูปภาพของ sirom
Joined: 30 มิ.ย. 2006
Points: 128
User offline. Last seen 3 weeks 3 days ago.
แล้วตรงนี

แล้วตรงนี้หมายความว่ายังไงครับ

W: Couldn't stat source package list http://linux.thai.net etch/main Packages (/var/lib/apt/lists/linux.thai.net_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://linux.thai.net etch/main Packages (/var/lib/apt/lists/linux.thai.net_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)





ฟ้าจะเป็นสีทองผ่องอำไพ เมื่อ Opensource ได้เป็นใหญ่ใน Thailand

somdej
รูปภาพของ somdej
Joined: 26 ม.ค. 2004
Points: 5107
User offline. Last seen 6 hours 40 min ago.
หมายความว่า มันหา directory นี้ใน server นี้ไม่เจอครับ

คือ ผมแปลตามที่คุณตัดแปะมาหนะครับ

ส่วน file นี้ คิดว่าเป็น file package list หนะครับ คือ เป็น file ที่บอกว่า มี package  อะไรใน server บ้าง

เพราะ apt ต้องเอา list ที่ในเครื่อง server นั้นๆ มาเทียบกับ list ที่อยู่ในเครื่องเรา จะได้บอกได้ว่า มีอะไรใหม่กว่า เก่ากว่า หรือมีอะไรที่มีใน server แต่เราไม่ได้ติดตั้ง ... ประมาณนี้หนะครับ :)





904 on MacBook AL แจ๋วสุดๆ Nvidia เนี่ย :)
คำแนะนำสำหรับมือใหม่ครับ เชิญที่นี่ครับ -> http://wiki.opentle.org/Newbie_README
คำแนะนำสำหรับผู้สนใจลินุกซ์ซิส (มือใหม่) เชิญที่นี่ครับ -> http://wiki.opentle.org/SIS-NewBie
คำแนะนำเรื่องความปลอดภัยของ LinuxSIS เชิญที่นี่ครับ ->  http://wiki.opentle.org/SIS5-Security
Upgrade - Bug fix ของ SIS เชิญที่นี่ครับ -> http://wiki.opentle.org/SIS-Upgrade-Bugfix

Syndicate content