Skip to main content

Agent Configuration

Configure your CastellanAI agents to optimize security monitoring for your environment.

Overview

CastellanAI agents are designed to work optimally out of the box with zero configuration required. When you install an agent using an enrollment token from the Portal, all necessary settings are automatically configured.

tip

Most users never need to modify agent settings. Agents are automatically configured during enrollment and receive updates from the Portal.

Automatic Configuration

When an agent enrolls with your account, it automatically receives:

SettingWhat It Does
Customer IDLinks the agent to your account
Worker URLConnects to your secure CastellanAI backend
API KeyAuthenticates the agent
Smart FilteringOptimizes data transmission (enabled by default)

Viewing Your Agents

To view your enrolled agents:

  1. Log in to your Customer Portal
  2. Click Agents in the header navigation
  3. View your agents with their status, platform, and activity

Agents Page The Agents page showing enrolled agents with status, platform, last seen, and events processed.

The Agents page shows:

ColumnDescription
HostnameThe machine name where the agent is installed
PlatformWindows, Linux, or macOS
StatusConnected, Disconnected, Pending, Updating, or Error
IP AddressThe agent's network address
VersionInstalled agent version
Last SeenWhen the agent last reported
Events TodayNumber of security events processed

Smart Filtering

Smart Filtering is CastellanAI's intelligent event prioritization system that reduces network traffic by 95-98% while ensuring critical threats are detected immediately.

How It Works

Priority LevelScore ThresholdWhat Happens
Critical≥90Sent immediately to dashboard
High≥70Batched and sent every few seconds
Medium≥40Analyzed locally on the agent
Low<40Filtered out (routine noise)

Smart Filtering is enabled by default and requires no configuration.

Event Collection

Agents collect events from multiple sources depending on the operating system:

Windows

  • Security Event Log
  • System Event Log
  • Application Event Log
  • PowerShell Event Log

Linux

  • Syslog
  • Auth log
  • Kernel messages

macOS

  • Unified logging system
  • Security events

Advanced Configuration

For advanced users or special deployment scenarios, agents can be configured through a local configuration file.

warning

Manual configuration is only recommended for advanced deployments. Most users should rely on automatic enrollment configuration.

Configuration File Location

PlatformLocation
WindowsC:\ProgramData\CastellanAI\appsettings.json
Linux/etc/castellanai/appsettings.json
macOS/Library/Application Support/CastellanAI/appsettings.json

Available Settings

{
"Agent": {
"HeartbeatInterval": 30,
"ReconnectInterval": 5,
"EventCollection": {
"CollectSecurity": true,
"CollectSystem": true,
"CollectApplication": true,
"CollectPowerShell": true,
"MaxEventsPerSecond": 1000,
"BufferSize": 10000
},
"SmartFiltering": {
"Enabled": true,
"DataReductionTarget": 95,
"CriticalThreshold": 90,
"HighThreshold": 70,
"MediumThreshold": 40
}
}
}

Setting Descriptions

SettingDefaultDescription
HeartbeatInterval30Seconds between agent heartbeats
ReconnectInterval5Seconds to wait before reconnection attempts
CollectSecuritytrueMonitor Security event log
CollectSystemtrueMonitor System event log
CollectApplicationtrueMonitor Application event log
CollectPowerShelltrueMonitor PowerShell event log
MaxEventsPerSecond1000Rate limit for event processing
BufferSize10000Maximum events to buffer locally
SmartFiltering.EnabledtrueEnable intelligent event filtering
DataReductionTarget95Target percentage of data reduction
EnvironmentRecommendation
Production ServersUse defaults (all channels monitored, Smart Filtering enabled)
WorkstationsUse defaults (optimal for end-user devices)
DevelopmentConsider reducing MaxEventsPerSecond to minimize noise
High-SecurityUse defaults (Smart Filtering ensures critical events are prioritized)

Troubleshooting

Agent Not Appearing in Portal

  1. Verify the agent service is running
  2. Check network connectivity to CastellanAI servers
  3. Ensure the enrollment token was valid and not expired
  4. Review agent logs for error messages

Agent Showing Disconnected

  1. Check if the agent service is running on the endpoint
  2. Verify network connectivity (firewalls, proxies)
  3. Restart the agent service if needed

Events Not Being Collected

  1. Verify the event log channels are enabled in the configuration
  2. Check that the agent has permission to read event logs
  3. Review MaxEventsPerSecond if experiencing high volume

What's Next?