block_ip_address
Block an IP address by adding it to Splunk's firewall blocklist, with configurable duration and audit trail for SOC response.
Instructions
Block an IP address by adding it to Splunk's firewall blocklist.
Creates a block entry that can be consumed by firewalls, proxies, or other security controls integrated with Splunk. The block can be temporary or permanent.
Args: ip_address: IP address to block duration_hours: How long to block (0 = permanent) reason: Reason for blocking (for audit trail) auto_unblock: Whether to automatically remove block after duration
Returns: Dictionary containing: - success: Boolean indicating if block was applied - ip_address: The blocked IP - blocked_until: Expiration timestamp - block_id: Unique identifier for this block
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| ip_address | Yes | ||
| auto_unblock | No | ||
| duration_hours | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |