Getting Data In

Text logs not forwarded or indexed

MattMorish
Explorer

Hi,

I have an issue in forwarding application logs (text files) to splunk.
Windows Event Logs are forwarded and indexed properly but text files in a local drive are not.
Do you have any idea what the cause of this problem?

Thank you.

Labels (2)
0 Karma
1 Solution

isoutamo
SplunkTrust
SplunkTrust

If I recall right, remote files should read with domain account not local? You could try to reset any of filepointer in fishbucket and see if it reread it. Otherwise I propose to use domain account. 

In whitelist those are regex so try .*\..* instead of *.*


r. Ismo

View solution in original post

isoutamo
SplunkTrust
SplunkTrust

Hi

can you send your inputs.conf and outputs.conf files so community can help you?

r. Ismo

0 Karma

MattMorish
Explorer

HI,

Thank you for your quick reply. I'm attaching the conf.

--- inputs.conf ---

[monitor://\\vmappt123\CREMS-PLUS-IF\LOG\]
disabled = false
index = main
sourcetype =
whitelist = *.*

[monitor://\\vmappt123\CREMS-PLUS-IF\LOG]
disabled = false
index = main

[monitor://\\vmappt123\CREMS-PLUS-IF\LOG\*.log*]
disabled = false
index = main

[monitor://D:\App\IVIF0001DJ\LOG]
disabled = false
index = main

[monitor://D:\App\IVIF0001DJ\LOG\*]
disabled = false
index = default
sourcetype = MXG-CREMS Plus - Realtime

[monitor://\\vmappp123\CREMS-PLUS-IF\LOG\*]
disabled = false
index = main
sourcetype = MXG-CREMS Plus - Realtime

[monitor://\\vmappt123\CREMS-PLUS-IF\LOG\*]
disabled = false
index = main

[monitor://\\vmappp123\CREMS-PLUS-IF\LOG]
disabled = false
index = main

[monitor://D:\App\IVIF0001DJ\LOG\*.log*]
disabled = false
index = main
sourcetype = MXG-CREMS Plus - Realtime

[monitor://\\vmappp123\CREMS-PLUS-IF\LOG\*.log*]
disabled = false
index = main

--- End of inputs.conf ---

--- outputs.conf ---

[tcpout]
defaultGroup = my_search_peers

[tcpout:my_search_peers]
server = v-spk01p:9997, v-spk01c:9997
autoLB = true

--- End of outputs.conf ---

 

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Anyone of those is working?

Are your splunk user in UF using local, domain or  service user? Based on your inputs it should be a domain or service.

Which version you are using?

r. Ismo

0 Karma

MattMorish
Explorer

Hi,

None of them is working, but according to TailingProcessor:FileStatus, it looks that the forwarder is successfully reading all files.

Capture.PNG

"Local System account" is selected on the tab "Log On" in the property of "SplunkForwarder Service" running on the source server.


We are using Splunk Enterprise 6.6.6.

Thank you.

0 Karma

isoutamo
SplunkTrust
SplunkTrust

If I recall right, remote files should read with domain account not local? You could try to reset any of filepointer in fishbucket and see if it reread it. Otherwise I propose to use domain account. 

In whitelist those are regex so try .*\..* instead of *.*


r. Ismo

MattMorish
Explorer

Hi,

Thank you very much for your helpful suggestion! We cracked the issue by doing as below.
1) Removed all the forwarded inputs that referenced network shares and just used local directories. Only 3 are present now (one of which must be working):

1.PNG
2) Renamed one of the log files to have the extension .log

2.PNG
3) Adding a new line, the text has appeared in Splunk

We think its the third one we tried that's based on the regular expression that you suggested.
Thank you very much for pointing us the right direction!

 

 

 

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!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...