User Tools

Site Tools


haas:system:log.offbyone.lan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haas:system:log.offbyone.lan [2014/04/11 14:32] – [News] wedgehaas:system:log.offbyone.lan [2014/07/14 20:16] (current) – [Packages] wedge
Line 4: Line 4:
  
 ^  hostname  ^  RAM  ^  disk  ^  swap  ^  OS  ^  Kernel  ^ ^  hostname  ^  RAM  ^  disk  ^  swap  ^  OS  ^  Kernel  ^
-|  log.offbyone.lan  |  192MB   4GB (/)  |  128MB  |  Debian testing/"Jessie" (AMD64)  |  3.2.0-4-amd64  | +|  log.offbyone.lan  |  256MB   4GB (/)  |  128MB  |  Debian 8.0 "Jessie" (AMD64)  |  3.14-1-amd64  |
- +
-log.offbyone.lan created on sokraits on 04/11/2014.+
  
 +log.offbyone.lan created on sokraits on 07/12/2014.
  
 =====News===== =====News=====
   * 04/11/2014 -- Created log.offbyone.lan to replace the old one (mth)   * 04/11/2014 -- Created log.offbyone.lan to replace the old one (mth)
 +  * 07/12/2014 -- re-recreated log.offbyone.lan and deployed (mth)
  
 =====TODO==== =====TODO====
-  * important task +  * sanitize syslog-ng.conf 
-  * other important task +  * create new client syslog-ng.conf 
-  * yet more important tasks+  * explore switching over to rsyslog
 =====Xen Config===== =====Xen Config=====
-(If this is a Xen VM) The Xen config file for this VM is as follows: 
  
 +====Creation====
 +log.offbyone.lan created on sokraits on 07/12/2014:
 +
 +<cli prompt="# ">
 +sokraits:~# xen-create-image --hostname=log role=udev --mac=00:16:3E:2d:47:76
 +</cli>
 +
 +====Configuration====
 <code> <code>
-########################################################################## +######################################################################                     
-# LAIR Xen VM configuration file +## 
-##########################################################################+## LAIR Xen VM configuration file 
 +## 
 +##     created by xen-tools 4.4 on Sat Jul 12 11:51:42 2014. 
 +## 
 +######################################################################
  
-################################################# +###################################################################### 
- Kernel + memory size +## 
-+## PyGRUB 
-kernel  = '/boot/vmlinuz-2.6.26-2-xen-amd64' +## 
-ramdisk = '/boot/initrd.img-2.6.26-2-xen-amd64' +bootloader  = '/usr/lib/xen-4.3/bin/pygrub'
-memory  = '128' +
-vcpus   = '1' +
-#extra   = 'clocksource=jiffies'+
  
-################################################# +###################################################################### 
- Disk device(s). +#
-+## CPU(s) + memory size 
-root    = '/dev/xvda1 ro+#
-disk    [ 'file:/xen/images/sample.disk,xvda1,w', +memory      = '256
-            'file:/xen/images/sample.swap,xvda2,w ]+vcpus       = '1'
  
-################################################# +###################################################################### 
- Hostname +## 
-+## Disk device(s). 
-name    = 'sample'+## 
 +root        = '/dev/xvda1 ro' 
 +disk        = [ 'file:/xen/images/log.disk,xvda1,w', 
 +                'file:/xen/images/log.swap,xvda2,w]
  
-################################################# +###################################################################### 
- Networking +## 
-+## Hostname 
-dhcp    = 'dhcp' +## 
-vif     'mac=00:16:3E:AA:BB:CC]+name        = 'log'
  
-################################################# +###################################################################### 
- Behaviour +#
-#+## Networking 
 +## 
 +dhcp        = 'dhcp' 
 +vif         = [ 'bridge=xenbr1,mac=00:16:3E:2d:47:76'
 + 
 +###################################################################### 
 +## 
 +## Behaviour 
 +##
 on_poweroff = 'destroy' on_poweroff = 'destroy'
 on_reboot   = 'restart' on_reboot   = 'restart'
Line 62: Line 81:
  
 ^  Machine  ^  Interface  ^  IP Address  ^  MAC Address  ^  Other Names  ^ ^  Machine  ^  Interface  ^  IP Address  ^  MAC Address  ^  Other Names  ^
-|  sample.offbyone.lan  |  eth0  |  10.80.x.  00:16:3E:AA:BB:CC   |+|  log.offbyone.lan  |  eth0  |  10.80.2.15   00:16:3E:2d:47:76   |
 =====Packages===== =====Packages=====
  
 The following packages have been installed on db: The following packages have been installed on db:
  
-  particular-package +  lair-std (replaced syslog-ng.conf with custom one for the log server) 
-  other-useful-package +  lair-ldap (nslcd pam-ldapd libnss-ldapd) 
- +  lair-nfs 
-=====particular package config===== +  lair-autofs 
-If you set up services on the machinebe sure to identify what they are, and provide details of their relevant configurations. +  mosh 
 +=====syslog-ng config===== 
 +As log is the log aggregatorit mustn't have the LAIR standard client configurationFollowing is its config:
 ====package_thing.conf==== ====package_thing.conf====
 Identification of the file(s) to edit, along with working configs: Identification of the file(s) to edit, along with working configs:
Line 91: Line 111:
 =====important topic===== =====important topic=====
 Explanation of important topic relevant to the service your machine is providing. Explanation of important topic relevant to the service your machine is providing.
 +
 +=====Potentially useful URLs=====
 +  * https://peter.blogs.balabit.com/2010/02/how-to-collect-apache-logs-by-syslog-ng/
 +  * http://blog.tremily.us/posts/syslog-ng/
haas/system/log.offbyone.lan.1397226722.txt.gz · Last modified: 2014/04/11 14:32 by wedge