pivot_by_ip
Search all indexes and sourcetypes for activity related to a specific IP address. Analyzes network flows, authentication attempts, and data transfers to support SOC investigations.
Instructions
Pivot on IP address across all indexes and sourcetypes for comprehensive analysis.
This is a critical tool for traditional SOC analyst workflows - it provides a complete view of all activity associated with an IP address, including network flows, authentication attempts, and data transfers.
Args: ip_address: IP address to pivot on (e.g., "10.1.42.42") timeframe: Splunk time modifier (e.g., "-30d", "-7d", "-1h") max_results: Maximum results to return per category
Returns: Comprehensive dictionary with all IP-related activity including: - Summary statistics (total events, unique destinations, time range) - Destination analysis (IPs contacted, ports, protocols) - Authentication events (users, success/failure, destinations) - Data transfer analysis (bytes in/out, top destinations) - Sourcetype distribution
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeframe | No | -30d | |
| ip_address | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |