Splunk® Supported Add-ons

Splunk Add-on for Squid Proxy

Download manual as PDF

Download topic as PDF

Configure monitor input for the Splunk Add-on for Squid Proxy

You need to configure the Splunk platform to monitor the access log file generated by the Squid Proxy server. You can use either Splunk Web to create the monitor input or configure inputs.conf directly.

Configure Monitoring through Splunk Web

Configure a file monitoring input on your data collection node for the Squid Proxy server access.log file.

  1. Log into Splunk Web.
  2. Select Settings > Data inputs > Files & directories.
  3. Click New.
  4. Click Browse next to the File or Directory field.
  5. Navigate to the access.log file generated by the Squid Proxy server and click Next.
    Note: The default location of access.log is /usr/local/squid/var/logs/access.log.
  6. Next to Source type, click Select to select the source type definition provided in the add-on.
  7. Click on the Select Source Type dropdown and select Network & Security, then squid:access or type squid:access in the field.
  8. Click Review.
  9. After you review the information, click Submit.

Configure inputs.conf

You can create an inputs.conf file and configure the monitor input in this file instead of using Splunk Web.

  1. Using a text editor, create a file named inputs.conf in the $SPLUNK_HOME/etc/apps/Splunk_TA_squid/local folder.
  2. Add the following stanza and lines, replacing <path> with the actual path to access.log, and save the file.
    [monitor://<path>]
    sourcetype=squid:access
    disabled = 0
    

    Note: The default location of access.log is /usr/local/squid/var/logs/access.log.

  3. Restart the Splunk platform in order for the new input to take effect.

Validate data collection

After you configure monitoring, run this search to check that you are ingesting the data that you expect.

sourcetype=squid:access

PREVIOUS
Configure Squid Proxy access log
  NEXT
Troubleshoot the Splunk Add-on for Squid Proxy

This documentation applies to the following versions of Splunk® Supported Add-ons: released


Was this documentation topic helpful?

Enter your email address, and someone from the documentation team will respond to you:

Please provide your comments here. Ask a question or make a suggestion.

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters