Getting Data In

index same file but where the file name is different in splunk

surekhasplunk
Communicator

Hi,

I am currenlty monitoring ///asbc/logs/*.log

and this folder gets updated everyday with a file called myfile_ddmmyyyy.log

But since the many a days there is no change or update in the log file it doesn't get indexed. 

I am using crcSalt also but no luck. its not getting indexed. Please help

disabled = false
index = abc
sourcetype = _json
crcSalt = <SOURCE>

Labels (1)
Tags (2)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

if the file not exists or it’s content is empty there is nothing to index to splunk. Splunk can only index those events not just filenames.

Or was the situation that there are those files with different content and they still didn’t indexed to splunk?

An additional comment as you are using sourcetype _json, the best practices is define your own sourcetype for json based event not use this “example” sourcetype.

r. Ismo

0 Karma

venkateshparank
Path Finder

@surekhasplunk  You have log file myfile_ddmmyyyy.log under /asbc/logs/*.log on server and you have given below stanza right ? Please check if you gave below stanza in inputs.conf

[monitor:///asbc/logs/*.log]
disabled = 0
crcSalt = <SOURCE>
sourcetype = _json
index = abc

 

Please check below once above stanza is added:

1) Are you using deployment server ? If yes, make sure you have added the server in serverclass.conf
2) Make sure the deployment server details are corret in deploymentclient.conf
3) Make sure the Splunk Forwarder is up and running. Try restart
4) Verify if the port 8089 is open
5) Verify you are able to connect to deployement server through 8089 using telnet from server

 

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!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...