All Apps and Add-ons

Counting open files with lsof in Unix app

timmy13
Communicator

I need a way to determine how many files a particular user has open at any given time. This data exists in the output of the lsof data in the *nix app. BUt since it's one big field, I am unsure of how to parse it to get counts of files by user. Any ideas?

0 Karma
1 Solution

araitz
Splunk Employee
Splunk Employee

Did you try:

index=os sourcetype=lsof | multikv

View solution in original post

harish_l
New Member

what is the maximum ulimit is splunk, by default minimum is 64000. anyone please let me know the maximum ulimit setting?

0 Karma

araitz
Splunk Employee
Splunk Employee

Did you try:

index=os sourcetype=lsof | multikv

timmy13
Communicator

Nice! Sometimes the simplest solution evades me. Thanks!

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...