Deployment Architecture

Detecting removable media

malex27
New Member

I need to detect when a removable media (USB stick, CD, external disks, ...) is attached or detached to our Linux servers.

Anyone implemented it?

Thanks
Alessio

Tags (2)
0 Karma
1 Solution

rturk
Builder

Hi Malex27,

Typically, linux will write an entry into:
/var/log/messages

Whenever a USB device is plugged in or removed from the server. You can configure this to be manually monitored via a monitor stanza in your inputs.conf.

Alternatively, you can use the Splunk for Unix & Linux app to monitor the file and send the data to an Indexer for the purposes of reporting.

Hope this helps 🙂

View solution in original post

rturk
Builder

Hi Malex27,

Typically, linux will write an entry into:
/var/log/messages

Whenever a USB device is plugged in or removed from the server. You can configure this to be manually monitored via a monitor stanza in your inputs.conf.

Alternatively, you can use the Splunk for Unix & Linux app to monitor the file and send the data to an Indexer for the purposes of reporting.

Hope this helps 🙂

malex27
New Member

Thanks R.Turk,

I guess the first one is the simpler way, I just need to figure out the search patterns.

0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...