Open MKKoppula opened 1 year ago
makeresults eval ip=split("10.13.0.0 10.13.0.255 10.13.63.255 10.13.255.255 10.13.62.255 10.14.63.255", ") mvexpand ip eval result=if (cidrmatch("10.13.0.0/18", ip), "match", "no-match") eval regexmatch=if (match (ip, "10. 13. ([O-9]| [1-5]0-9."), "regex match", " no-match") eval blacklist="blacklist.0 = 10.13. ([0-9]|[1-5][0-9]|6[1-3])."
if [ $# -ne 2 ]; then
echo "Usage: $0
input_file=$1 output_file=$2
if [ ! -f "$input_file" ]; then echo "Input file not found: $input_file" exit 1 fi
if [ -f "$output_file" ]; then rm "$output_file" fi
while read -r hostname; do ip_address=$(host "$hostname" | awk '/has address/ {print $NF}') if [ -n "$ip_address" ]; then echo "$hostname,$ip_address" >> "$output_file" else echo "Failed to resolve the IP address for the hostname: $hostname" fi done < "$input_file"
echo "Conversion completed. Results written to: $output_file"
match("%CDP-" value ("MSGHDR")) or match("%CDP-" value ("MSG")) or match("%LINK-" value ("MSGHDR")) or match("%LINK-" value ("MSG")) or match("%C4K_EBM-" value ("MSGHDR")) or match("%C4KEBM-" value ("MSG")) or match("%SFF" value ("MSGHDR")) or match("%SFF" value ("MSG")) or match("%IP-" value ("MSGHDR")) or match("%IP-" value ("MSG")) or match("%SEC-" value ("MSGHDR")) or match("%SEC-" value ("MSG")) or match("%C3800" value ("MSGHDR")) or match("%C3800" value ("MSG")) or match("%SEC-" value ("MSGHDR")) or match("%SEC-" value ("MSG")) or match("%ATM" value ("MSGHDR")) or match("%ATM" value ("MSG")) or match("%MV64340" value ("MSGHDR")) or match("%MV64340" value ("MSG")) or match("%EARL" value ("MSGHDR")) or match("%EARL" value ("MSG")) or match("%ILPOWER-" value ("MSGHDR")) or match("%ILPOWER-" value ("MSG")) or match("%PM-" value ("MSGHDR")) or match("%PM-" value ("MSG")) or match("%DIALER-" value ("MSGHDR")) or match("%DIALER-" value ("MSG")) or match("%SSH-" value ("MSGHDR")) or match("%SSH-" value ("MSG")) or match("%FW-" value ("MSGHDR")) or match("%FW-" value ("MSG")) or match("%RCMD-" value ("MSGHDR")) or match("%RCMD-" value ("MSG")) or match("%IP" value ("MSGHDR")) or match("%IP_" value ("MSG")) or match("%SSH-" value ("MSGHDR")) or match("%SSH-" value ("MSG"))
or match(" cst: " value ("MSGHDR")) or match(" cst: " value ("MSG"))
or match("-Traceback=" value ("MSGHDR")) or match("-Traceback=" value ("MSG"))
or match("%CRYPTO-" value ("MSGHDR")) or match("%CRYPTO-" value ("MSG"))
or match("%DUAL-" value ("MSGHDR")) or match("%DUAL-" value ("MSG"))
or match("%SYS-" value ("MSGHDR")) or match("%SYS-" value ("MSG"))
or match("%LINEPROTO" value ("MSGHDR")) or match("%LINEPROTO" value ("MSG"))
or match("connection id=" value ("MSGHDR")) or match("connection id=" value ("MSG"))
or match("%VPN_HW" value ("MSGHDR")) or match("%VPN_HW" value ("MSG"))
or match("%HSRP_ENGINE" value ("MSGHDR")) or match("%HSRP_ENGINE" value ("MSG"))
or match("%BGP-" value ("MSGHDR")) or match("%BGP-" value ("MSG"))
or match("%WCCP-" value ("MSGHDR")) or match("%WCCP-" value ("MSG"))
or match("%CONTROLLER-" value ("MSGHDR")) or match("%CONTROLLER-" value ("MSG"))
or match("ISAKMP:" value ("MSGHDR")) or match("ISAKMP:" value ("MSG"))
or match("%CDP-" value ("MSGHDR")) or match("%LINK-" value ("MSGHDR")) or match("%C4KEBM-" value ("MSGHDR")) or match("%SFF" value ("MSGHDR")) or match("%IP-" value ("MSGHDR")) or match("%SEC-" value ("MSGHDR")) or match("%C3800" value ("MSGHDR")) or match ("%SEC" value ("MSGHDR")) or match ("%ATM" value ("MSGHDR")) or match ("%MV64340" value ("MSGHDR")) or match ("%EARL" value ("MSGHDR")) or match ("%ILPOWER-" value ("MSGHDR")) or match ("%PM-" value ("MSGHDR")) or match ("%DIALER-" value ("MSGHDR")) or match ("%SSH-" value ("MSGHDR")) or match ("%FW-" value ("MSGHDR")) or match ("%RCMD-" value ("MSGHDR")) or match ("%IP_" value ("MSGHDR"))
@version: 3.28 @include "scl.conf"
source s_network { udp(); tcp(ip(0.0.0.0) port(514)); };
destination d_filtered { file("/var/log/filtered_logs.log"); };
filter f_exclude_dest_ip { not match("dest_ip=10.0.0.[0-9]{1,3}"); };
filter f_include_src_ip { match("src_ip=10.0.0.[0-9]{1,3}"); };
filter f_include_patterns { match("%FTD-1-430003" type("string")); match("%FTD-1-430002" type("string")); };
log { source(s_network); filter(f_exclude_dest_ip); filter(f_include_src_ip); filter(f_include_patterns); destination(d_filtered); };
Estimating the additional vCPU and storage needed when adding 50 apps' worth of data to Splunk depends on several factors, including the volume of data these apps generate and the complexity of their searches. Here's a general approach to estimate the requirements:
Data Volume Estimation:
vCPU Estimation:
Storage Estimation:
Consult Splunk Support:
Monitoring and Adjustment:
Remember that estimating resource requirements can be complex, and real-world usage can vary. It's always a good practice to start conservatively and scale up as needed based on actual performance and resource utilization. Splunk's documentation, support, and tools are valuable resources for accurate sizing and capacity planning.
https://www.taylormorrison.com/tx/austin/leander/travisso-60s-siena-collection/floor-plans/larimar