Other Usage

How to create a report with event by latest source file?

cbiraris
Path Finder

Hi Team,

I am looking for the help to created search query for my daily run report which is running 3 time in a day.

we are putting the files in directory which we are monitoring in splunk. is there any way we can grab events from only latest sourcefile?

For example: 

Index=abc sourcetype=xyz
source=/opt/app/file1_09092023.csv
source=/opt/app/file2_09102023.csv
source=/opt/app/file3_09112023.csv..... new file can be placed time to time.

I wanted report can be show only events from latest file, is it possible?

Thank you

 

Labels (1)
Tags (1)
0 Karma

cbiraris
Path Finder

Please help with answers .

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...