icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading TA-tcpdump
SHA256 checksum (ta-tcpdump_002.tgz) d842e5001a8362748ddde6b14b7d75fd3bb98ae2b0310e28c88203b949bcaddd SHA256 checksum (ta-tcpdump_001.tgz) 74df055e728f018bd63373b1b74a89c9469e2a2e1d9f74b2e3e7e1f25a448890
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

TA-tcpdump

Splunk AppInspect Passed
Admins: Please read about Splunk Enterprise 8.0 and the Python 2.7 end-of-life changes and impact on apps and upgradeshere.
Overview
Details
This TA enables a direct tcpdump input on a linux system running Splunk Universal Forwarder.

Possible use cases
------------------
- DNS Insight https://splunkbase.splunk.com/app/1827/
- DHCP Insight https://splunkbase.splunk.com/app/1837/

Contact
-------
Please email me splunk@compek.net if you have any issues. I actively support my apps and am anxious to receive any feedback.

splunk@compek.net

About

This TA enables a direct tcpdump input on a linux system running Splunk Universal Forwarder.

Possible use cases

Requirements

  • CentOS 7+, Debian 10+ and similar

Installation

Method 1: scripted input

  • install TA-tcpdump on UF and configure forwarding
  • copy default/inputs.conf to local/inputs.conf and enable script input in local/inputs.conf
  • modifiy bin/tcpdump.path if needed (interface)
  • modify tcpdump capabilities:
    • check that splunk user (by default "splunk") belongs to his own group: id splunk
    • chgrp splunk /usr/sbin/tcpdump
    • chmod 750 /usr/sbin/tcpdump
    • setcap cap_net_raw,cap_net_admin=ep /usr/sbin/tcpdump
  • restart UF

Method 2: run tcpdump as a service and write output to a log

  • install TA-tcpdump on UF and configure forwarding
  • copy default/inputs.conf to local/inputs.conf and enable monitor input in local/inputs.conf
  • copy provided tcpdump.service file to /etc/systemd/system and modify it (interface name, port) if needed
  • execute 'systemctl daemon-reload'
  • execute 'systemctl enable tcpdump'
  • execute 'systemctl start tcpdump'
  • copy provided tcpdump file to /etc/logrotate.d
  • restart UF

Troubleshooting

  • splunkd.log: ERROR ExecProcessor - message from "/usr/sbin/tcpdump -pnns0 -i eth0 -tttt port 53" tcpdump: eth0: No such device exists - check "ip a" output and change the interface name in inputs.conf
  • splunkd.log: ERROR ExecProcessor - message from "/usr/sbin/tcpdump -pnns0 -i eth0 -tttt port 53" (SIOCGIFHWADDR: No such device) - check "ip a" output and change the interface name in inputs.conf
  • splunkd.log: ERROR ExecProcessor - message from "/usr/sbin/tcpdump -pnns0 -i ens32 -tttt port 53" tcpdump: verbose output suppressed, use -v or -vv for full protocol decode - not an error, but STDOUT from tcpdump, can be ignored
  • splunkd.log: ERROR ExecProcessor - message from "/usr/sbin/tcpdump -pnns0 -i ens32 -tttt port 53" listening on ens32, link-type EN10MB (Ethernet), capture size 262144 bytes - not an error, but STDOUT from tcpdump, can be ignored

Disclamer

Running tcpdump permanently is a security risk. Don't run it on important productive systems. All what you do with this add-on is on your own risk.

Contact

Please email me splunk@compek.net if you have any issues. I actively support my apps and am anxious to receive any feedback.

email: splunk@compek.net

Release Notes

Version 0.0.2
April 18, 2020

* tcpdump captures now on all interfaces (excluding localhost - host 127.0.0.1) - no need to modify settings to adjust interface anymore
* alternatively to scripted input a second method was added: running tcpdump as a systemd service, writing output into /var/log/tcpdump.log and letting splunk to monitor this log. A unit file template for /etc/systemd/system is provided.
* added a template file for /etc/logrotate.d/tcpdump to truncate the /var/log/tcpdump.log file
* documentation is updated

Version 0.0.1
Dec. 16, 2019

first public release, consider it a beta

18
Installs
172
Downloads
Share Subscribe LOGIN TO DOWNLOAD

Subscribe Share

AppInspect Tooling

Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
© 2005-2020 Splunk Inc. All rights reserved.
Splunk®, Splunk>®, Listen to Your Data®, The Engine for Machine Data®, Hunk®, Splunk Cloud™, Splunk Light™, SPL™ and Splunk MINT™ are trademarks and registered trademarks of Splunk Inc. in the United States and other countries. All other brand names, product names, or trademarks belong to their respective owners.