1/* 2 * logtool - a logfile parsing/monitoring/manipulation utility 3 * 4 * Copyright (C) Y2K (2000) A.L.Lambert 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2, or (at your option) 9 * any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 */ 20 21 22#define CONFIG_FILE "@sysconfdir@/logtool.conf" /* This is the logtool config file */ 23 24#define DNSDB_FILE "@DB_FILE@" 25 26/* we cache DNS hostname's for this length of time - 24 hours by default */ 27#define DNS_CACHE_TIME 86400 28 29/* if we don't know what ERR ==, set it here */ 30#ifndef ERR 31 #define ERR (-1) 32#endif 33 34/* we don't have default colorization files and such anymore, we just take default config file */ 35 36#define LSIZE 8096 /* how big a line of text will we read? */ 37 38/* You shouldn't muck around with anything below this line less you know what you're doing */ 39 40#define DATE_LONG 0 /* If we display the full date */ 41#define DATE_SHORT 1 /* If we display the short date */ 42 43#define HOST_DEFAULT 0 /* display the host-field as-is */ 44#define NG_HOST_NAME 1 /* syslog-ng display name of host only */ 45#define NG_HOST_IP 2 /* display the origin host IP only */ 46#define NG_HOST_BOTH 3 /* display hostname and IP */ 47 48/* define values of TRUE and FALSE so code is more readable */ 49#define TRUE 1 /* the value of TRUE */ 50#define FALSE 0 /* the value of FALSE */ 51 52/* Define the version specific stuff's */ 53#define PROGRAM_NAME "logtool" 54#define AUTHORS "A.L.Lambert" 55#define VERSION "@version@" 56#define PRINT_VERSION printf("%s version %s, copyright Y2K-current %s\n", PROGRAM_NAME, VERSION, AUTHORS); 57 58/* 59 * Define's for the different event types we might see. See regex.c for the rest 60 * of the stuff to go with this (like the REGEX's for each event type and such) 61 */ 62#define EVENT_UNKNOWN 0 63#define EVENT_SYSLOG 1 64#define EVENT_SNORT 2 65#define EVENT_IPTABLES 3 66 67/* 68 * These define the different output formats. Unless you know what you're doing, 69 * don't muck with em. 70 */ 71#define OUTPUT_ANSI 0 72#define OUTPUT_ASCII 1 73#define OUTPUT_CSV 2 74#define OUTPUT_HTML 3 75#define OUTPUT_RAW 4 76#define OUTPUT_CURSES 5 /* this don't exist yet :) */ 77 78