Skip to main content

Agent Configuration

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

Overview

Zero Configuration Required

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

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.

Agent Information

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

Events are scored locally on the agent and prioritized based on security relevance. This dramatically reduces bandwidth while ensuring nothing critical is missed.

Priority Levels

PriorityScore ThresholdWhat Happens
Critical≥90Sent immediately to dashboard
High≥70Batched and sent every few seconds
Medium≥40Analyzed locally on the agent
LowUnder 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 Event Sources

Event LogEvents Collected
SecurityAuthentication, access control, policy changes
SystemService changes, driver issues, hardware events
ApplicationApplication errors, warnings, crashes
PowerShellScript execution, command history

Advanced Configuration

Advanced Users Only

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

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

Configuration File Location

C:\ProgramData\CastellanAI\appsettings.json

Full Configuration Reference

appsettings.json
{
"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

⏱️ Connection Settings
SettingDefaultDescription
HeartbeatInterval30Seconds between agent heartbeats
ReconnectInterval5Seconds to wait before reconnection attempts
📊 Event Collection Settings
SettingDefaultDescription
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
🎯 Smart Filtering Settings
SettingDefaultDescription
SmartFiltering.EnabledtrueEnable intelligent event filtering
DataReductionTarget95Target percentage of data reduction
CriticalThreshold90Score threshold for immediate send
HighThreshold70Score threshold for batched send
MediumThreshold40Score threshold for local analysis

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?

GuideDescription
Agent Health MonitoringMonitor your agents' status and performance
Agent TroubleshootingResolve common agent issues