nixp.ru v3.0

19 апреля 2024,
пятница,
04:21:51 MSK

kolyan написал 28 февраля 2006 года в 11:46 (1031 просмотр) Ведет себя неопределенно; открыл 7 тем в форуме, оставил 9 комментариев на сайте.

Привет!

Есть FreeBSD,trafd.Имеем лог файлы вида From Port To Port Proto Data All.Подскажите,плиз,как сюда еще и дату и время добавить?Traflog.format имеет внутри следующее

#

# BPFT: User defined descriptions of the traflog output format.

#

# Keyword Description Argument type

# —————————————————--

# from source address printf string

# to destination address printf string

# sport source port printf string

# dport destination port printf string

# proto service protocol printf string

# bytes number of data bytes printf digit

# psize number of all bytes printf digit

# ftime first time strftime

# ltime last time strftime

#

#

# like default output format

#

default {

from:"%-18.18s » sport:"%-6.6s » to:"%-18.18s » dport:"%-6.6s »

proto:"%-4.4s » bytes:"%9ld » psize:«%10ld\n»

};

#

# the same as above, but show configuration file facility

#

facility

{

from address «%-18.18s » and source sport «%-6.6s »

to address «%-18.18s » and destination dport «%-6.6s »

with use protocol «%-4.4s » was passed data bytes «%9ld »

or in full packets size (psize) «%10ld\n»

} ;

#

# mailacct output format

#

mailacct {

from:»[%s]» sport:«!%s» proto:«/%s» to:"\t[%s]» dport:«!%s» proto:«/%s»

psize:«\t%d» ftime:"\t%d.%m.%y %T\n»

};

Чтение /usr/local/share/doc/trafd/README к просветлению не привело.

Подскажите чего-нибудь.

Последние комментарии

ecobeingecobeing.ru
Экология и вегетарианство на благо всем живым существам Планеты.