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
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...