<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic value pair input squid.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/value-pair-input-squid-conf/m-p/557646#M92286</link>
    <description>&lt;P&gt;Has anyone extracted the value pair squid.conf file to create a list of approve vs block URLs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is sourcetype that I was able to adjust&lt;/P&gt;&lt;P&gt;CHARSET=UTF-8&lt;BR /&gt;DATETIME_CONFIG=CURRENT&lt;BR /&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;category=Structured&lt;BR /&gt;description=A variant of the conf source type, with support for nonexistent timestamps&lt;BR /&gt;disabled=false&lt;BR /&gt;pulldown_type=true&lt;BR /&gt;LINE_BREAKER=([\r\n]+)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the sample input:&amp;nbsp; (masked host and IP for security)&lt;/P&gt;&lt;P&gt;# log_mime_hdrs on&lt;/P&gt;&lt;P&gt;# Turn off caching&lt;BR /&gt;cache deny all&lt;/P&gt;&lt;P&gt;# Disable ICMP pinger&lt;BR /&gt;pinger_enable off&lt;/P&gt;&lt;P&gt;# Consult local hosts file&lt;BR /&gt;# hosts_file /etc/hosts&lt;/P&gt;&lt;P&gt;# Set squid pidfile location&lt;BR /&gt;pid_filename /var/run/squid/squid.pid&lt;/P&gt;&lt;P&gt;# Set squid access logging location and use more human-readable format&lt;BR /&gt;access_log stdio:/var/log/squid/access_combined.log logformat=combined&lt;BR /&gt;access_log daemon:/var/log/squid/access_default.log logformat=squid&lt;/P&gt;&lt;P&gt;# Set cache logging location&lt;BR /&gt;cache_log /var/log/squid/cache.log&lt;/P&gt;&lt;P&gt;# Do not allow caching me&lt;BR /&gt;F5 BIG-IQ&lt;BR /&gt;# Mgmt Self-Outside&lt;BR /&gt;acl $masked_host$ src 20.20.30.4/32 160.11.44.56/32 # F5 BIG-IQ&lt;BR /&gt;acl $masked_host$ src 20.20.30.132/32 160.11.44.184/32 # F5 BIG-IQ&lt;/P&gt;&lt;P&gt;# External F5&lt;BR /&gt;# Mgmt Self-Outside Floating-Outside Self-Inside Floating-Inside&lt;BR /&gt;acl $masked_host$ src 160.11.42.8/32 192.160.223.74/32 160.11.42.142/32 # External F5 BIG-IP&lt;BR /&gt;acl $masked_host$ src 160.11.43.8/32 192.160.224.74/32 160.11.43.142/32 # External F5 BIG-IP&lt;/P&gt;&lt;P&gt;# External F5&lt;BR /&gt;# Mgmt Self-Outside Floating-Outside Self-Inside Floating-Inside&lt;BR /&gt;acl $masked_host$ src 160.11.42.4/32 192.160.223.4/32 192.160.223.46/32 160.11.42.132/32 160.11.42.140/32 # External F5 BIG-IP&lt;BR /&gt;acl $masked_host$ src 160.11.42.6/32 192.160.223.5/32 192.160.223.46/32 160.11.42.138/32 160.11.42.140/32 # External F5 BIG-IP&lt;BR /&gt;acl $masked_host$ src 160.11.43.4/32 192.160.224.4/32 192.160.224.46/32 160.11.43.132/32 160.11.43.140/32 # External F5 BIG-IP&lt;BR /&gt;acl $masked_host$ src 160.11.43.6/32 192.160.224.5/32 192.160.224.46/32 160.11.43.138/32 160.11.43.140/32 # External F5 BIG-IP&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jun 2021 17:34:12 GMT</pubDate>
    <dc:creator>youngsuh</dc:creator>
    <dc:date>2021-06-29T17:34:12Z</dc:date>
    <item>
      <title>value pair input squid.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/value-pair-input-squid-conf/m-p/557646#M92286</link>
      <description>&lt;P&gt;Has anyone extracted the value pair squid.conf file to create a list of approve vs block URLs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is sourcetype that I was able to adjust&lt;/P&gt;&lt;P&gt;CHARSET=UTF-8&lt;BR /&gt;DATETIME_CONFIG=CURRENT&lt;BR /&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;category=Structured&lt;BR /&gt;description=A variant of the conf source type, with support for nonexistent timestamps&lt;BR /&gt;disabled=false&lt;BR /&gt;pulldown_type=true&lt;BR /&gt;LINE_BREAKER=([\r\n]+)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the sample input:&amp;nbsp; (masked host and IP for security)&lt;/P&gt;&lt;P&gt;# log_mime_hdrs on&lt;/P&gt;&lt;P&gt;# Turn off caching&lt;BR /&gt;cache deny all&lt;/P&gt;&lt;P&gt;# Disable ICMP pinger&lt;BR /&gt;pinger_enable off&lt;/P&gt;&lt;P&gt;# Consult local hosts file&lt;BR /&gt;# hosts_file /etc/hosts&lt;/P&gt;&lt;P&gt;# Set squid pidfile location&lt;BR /&gt;pid_filename /var/run/squid/squid.pid&lt;/P&gt;&lt;P&gt;# Set squid access logging location and use more human-readable format&lt;BR /&gt;access_log stdio:/var/log/squid/access_combined.log logformat=combined&lt;BR /&gt;access_log daemon:/var/log/squid/access_default.log logformat=squid&lt;/P&gt;&lt;P&gt;# Set cache logging location&lt;BR /&gt;cache_log /var/log/squid/cache.log&lt;/P&gt;&lt;P&gt;# Do not allow caching me&lt;BR /&gt;F5 BIG-IQ&lt;BR /&gt;# Mgmt Self-Outside&lt;BR /&gt;acl $masked_host$ src 20.20.30.4/32 160.11.44.56/32 # F5 BIG-IQ&lt;BR /&gt;acl $masked_host$ src 20.20.30.132/32 160.11.44.184/32 # F5 BIG-IQ&lt;/P&gt;&lt;P&gt;# External F5&lt;BR /&gt;# Mgmt Self-Outside Floating-Outside Self-Inside Floating-Inside&lt;BR /&gt;acl $masked_host$ src 160.11.42.8/32 192.160.223.74/32 160.11.42.142/32 # External F5 BIG-IP&lt;BR /&gt;acl $masked_host$ src 160.11.43.8/32 192.160.224.74/32 160.11.43.142/32 # External F5 BIG-IP&lt;/P&gt;&lt;P&gt;# External F5&lt;BR /&gt;# Mgmt Self-Outside Floating-Outside Self-Inside Floating-Inside&lt;BR /&gt;acl $masked_host$ src 160.11.42.4/32 192.160.223.4/32 192.160.223.46/32 160.11.42.132/32 160.11.42.140/32 # External F5 BIG-IP&lt;BR /&gt;acl $masked_host$ src 160.11.42.6/32 192.160.223.5/32 192.160.223.46/32 160.11.42.138/32 160.11.42.140/32 # External F5 BIG-IP&lt;BR /&gt;acl $masked_host$ src 160.11.43.4/32 192.160.224.4/32 192.160.224.46/32 160.11.43.132/32 160.11.43.140/32 # External F5 BIG-IP&lt;BR /&gt;acl $masked_host$ src 160.11.43.6/32 192.160.224.5/32 192.160.224.46/32 160.11.43.138/32 160.11.43.140/32 # External F5 BIG-IP&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 17:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/value-pair-input-squid-conf/m-p/557646#M92286</guid>
      <dc:creator>youngsuh</dc:creator>
      <dc:date>2021-06-29T17:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: value pair input squid.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/value-pair-input-squid-conf/m-p/563513#M100385</link>
      <description>&lt;P&gt;After thinking thru the process.&amp;nbsp; &amp;nbsp;squid.conf would have approve and deny list of traffic in the configuration.&amp;nbsp; So, you would only need a section of .conf file parse instead of trying to parse all the fields.&amp;nbsp; here is the regex used to parse and build the lookup to monitor squid access logs for what's outside the approve and deny traffic.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;^acl\s(?P&amp;lt;acl_name&amp;gt;[^.\s]+)\s+\w+\s(?P&amp;lt;dest_domain&amp;gt;[-a-zA-Z0-9@:%._\+~#=]{1,256})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the regex101 link:&amp;nbsp;&amp;nbsp;&lt;A href="https://regex101.com/r/EPaTX1/1" target="_blank"&gt;https://regex101.com/r/EPaTX1/1&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 19:35:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/value-pair-input-squid-conf/m-p/563513#M100385</guid>
      <dc:creator>youngsuh</dc:creator>
      <dc:date>2021-08-16T19:35:23Z</dc:date>
    </item>
  </channel>
</rss>

