Common Constants¶
- File location
Bundled implementation:
source/client/python/const.pyCluster implementation:
cluster/core/source/python/const.py
-
const.ROOT¶ - Type
str
Path to the BroAPT-Core framework source codes (absolute path at runtime).
-
const.BOOLEAN_STATES= {'1': True, '0': False, 'yes': True, 'no': False, 'true': True, 'false': False, 'on': True, 'off': False}¶ Mapping of boolean states, c.f.
configparser.
-
const.CPU_CNT¶ - Type
int- Environ
Number of BroAPT concurrent processes for PCAP analysis. If not provided, then the number of system CPUs will be used.
-
const.INTERVAL¶ - Type
float- Environ
Bundled implementation:
BROAPT_INTERVALCluster implementation:
BROAPT_CORE_INTERVAL
Wait interval after processing current pool of PCAP files.
-
const.DUMP_PATH¶ - Type
str(path)- Environ
Path to extracted files.
-
const.PCAP_PATH¶ - Type
str(path)- Environ
Path to source PCAP files.
-
const.LOGS_PATH¶ - Type
str(path)- Environ
Path to system logs.
-
const.MIME_MODE¶ - Type
bool- Environ
If group extracted files by MIME type.
-
const.BARE_MODE¶ - Type
bool- Environ
Run Bro in bare mode (don’t load scripts from the
base/directory).
-
const.NO_CHKSUM¶ - Type
bool- Environ
Ignore checksums of packets in PCAP files when running Bro.
-
const.HOOK_CPU¶ - Type
int- Environ
Number of BroAPT concurrent processes for Python hooks.
-
const.FILE¶ - Type
str
os.path.join(LOGS_PATH, 'file.log')
Path to file system database of processed PCAP files.
-
const.TIME¶ - Type
str
os.path.join(LOGS_PATH, 'time.log')
Path to log file of processing time records.
-
const.STDOUT¶ - Type
str
os.path.join(LOGS_PATH, 'stdout.log')
Path to
stdoutreplica.
-
const.STDERR¶ - Type
str
os.path.join(LOGS_PATH, 'stderr.log')
Path to
stderrreplica.
-
const.QUEUE_LOGS¶ - Type
multiprocessing.Queue- Availability
bundled implementation
Teleprocess communication queue for log processing.
-
const.QUEUE¶ - Type
multiprocessing.Queue- Availability
cluster implementation
See also