Overview
Thesfn start command initializes and starts the SafeNetworking application, including all background processing threads for DNS monitoring, IoT threat detection, and AutoFocus integration.
Command Syntax
Description
This command performs the following operations:- Initializes the Flask application - Starts the web server for API access
- Validates configuration - Checks that required API keys are set (AutoFocus)
- Starts background processors:
- DNS event processing thread
- IoT honeypot data integration thread
- AutoFocus point tracking thread
- Logs system configuration - Records log level, ElasticSearch host, and port information
Prerequisites
- AutoFocus API key must be configured in
.panrcfile - ElasticSearch must be accessible at the configured host and port
- Total processor count (DNS_POOL_COUNT + URL_POOL_COUNT) must be ≤ 16 to comply with AutoFocus rate limits
Configuration
The command reads from the following configuration values:Logging verbosity level for the application
Hostname or IP address of the ElasticSearch instance
Port number for ElasticSearch connection
Host address for the Flask web server (default: localhost)
Port number for the Flask web server
Required API key for Palo Alto AutoFocus integration
Usage Example
Expected Output
Background Processes
When started, the application launches the following background threads:DNS Processing Thread
Searches for unprocessedsfn-dns documents in ElasticSearch, processes them with AutoFocus lookups, and enriches the data.
