logpipe FFS

DateVersionAuthor
Apr. 25, 20061.1Oliver Kurth
Apr. 13, 20061.0Oliver Kurth

Introduction

The purpose of logpipe is to reliably transfer logging data over the network using an encrypting method.

The main requirements are:

Description

logpipe reads from unidirectional pipes. Whenever data are available, these will be written to other pipes, files or tcp connections. All data coming from all inputs will be written to all outputs.

Writing data may require a tunnel, this will be realized over ssh. The command to establish the tunnel will be started from within logpipe, and killed when there are no data after some time.

Configuration

logpipe reads from a configuration file. The format is:

global{
	interval: 15
}
pipe{
	event{
		spec: pipe:/tmp/event
		type: read
		create: yes
		urgent: yes
	}
	cybuf{
		count: 48
		spec: pipe:/tmp/ttyS%d.pipe
		type: read
		create: no
	}
	savefile{
		spec: file:/tmp/logfile
		type: write
		save: yes
		max_size: 1000000
	}
	tunnel{
		spec: tcp:127.0.0.1:1514
		type: write
		tunnel_cmd: ssh -N -L 1514:127.0.0.1:514 oku@192.168.48.155
		tunnel_timeout: 15
		alert_cmd: echo alert
		max_buf: 10000
	}
}

Global options are configured under 'global'. So far, there is only 'interval' which determines the interval the status of the connection is checked (in seconds).

The sub sections below 'pipe' can have arbitrary names. Each defines a connection, which can be for reading or writing.

Each 'pipe' has the following options:


Oliver Kurth
Last modified: Tue Apr 25 17:02:47 PDT 2006