Getting Data In

Finding the file path of a deleted file input

Tyrian01
Explorer

Hi Brains Trust,

I'm trying to find the location of a CSV file that used to be a file input in 2019 but the file input (Files & directories) has been removed from the HF. 

Is there a way to search for the file path? The only info I have is the index & source file name but need to know the details on the file input to see if the file in question still exists in that location.

index=nessus source="2019_04_17_CRIT_HIGH.csv"

Thanks in advance!

Labels (2)
0 Karma

Tyrian01
Explorer

Thanks Giuseppe,

The wildcard in the search returns the same information. There's no retention issues on that index (no maximum on index size).

I'd assume the information is available in a Splunk log file, not the indexed data. 

Thanks again

Simon

 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

If you don't have any retention parameters explicitly set Splunk uses defaults so you always have some lifetime limits. 🙂

But to the point.

Unless you enable some form of input debugging, Splunk doesn't log every single input file read. And even if it did, it would go to the _internal index which is by default kept for only 30 days.

So your best bet would be probably to find what host the events came from and look in its forwarder's config.

But that's not a 100% foolproof solution since all metadata fields can be arbitrarily manipulated so theoretically, your data could have been, for example pushed via HEC by some external mechanism.

Tyrian01
Explorer

Thanks for the clarification on the _internal index retention.

It was certainly a File & directories input. The person that created the input/index has since left & I need the source file to replicate the regex/indexing.

I'll see what I can dig up outside of Splunk. Appreciate the input!

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Tyrian01 ,

if you indexed that file and there were some content and you didn't exceeded the retention time, the log should be in your index.

If there isn't check the three above conditions.

I don't think that this information is in the Splunk log file, because they surely have a much minor retention then the other data.

let me know if I can help you more, or, please, accept one answer for the other people of Community.

Ciao and happy splunking.

Giuseppe

P.S.: Karma Points are appreciated 😉

gcusello
SplunkTrust
SplunkTrust

Hi @Tyrian01 ,

it's a very slow search, but try:

index=nessus source="*2019_04_17_CRIT_HIGH.csv"

if you still have these logs, you should be able to find them.

The problem could be the retention: how long do you maintain logs in your system?

Ciao.

Giuseppe

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Mastering Threat Intelligence in ES 8.5, Splunk AI Assistant v2, and More from Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...

Break the Build: Inside the KubeDoom Lounge at .conf26

    You step up to the machine. The pixelated corridors of a certain 1993 FPS load in front of you, EMP Pulse ...

Splunk Auto Ingestion Parallel Pipeline Scaling

Why this feature matters Many Splunk environments experience ingestion pressure long before the host is fully ...