Getting Data In

Reading database logs from linux server

islam
Explorer

Hi,

We want to read the database logs from a linux server, and the logs are stored in specific path “</path>/log/” as example . The logs are archived at the end of every day in same directory of real time log file. The real time info writes into “vertica.log” file, so we don’t want to read logs from the file “vertica.log”

How can we reed this archived  files in splunk.

 
 

vertica.log.png

Labels (2)
0 Karma
1 Solution

venkateshparank
Path Finder

Create monitoring stanza like below:

[monitor:///<path>/log/vertica.log-*]

disabled = 0

crcSalt = <SOURCE>

index = <IndexName>

 

If you still see the vertica.log is reading, trying adding below line in above Stanza

blacklist = vertica.log

 

That would be like below:

[monitor:///<path>/log/vertica.log-*]

disabled = 0

crcSalt = <SOURCE>

index = <IndexName>

blacklist = vertica.log

 

View solution in original post

0 Karma

venkateshparank
Path Finder

Create monitoring stanza like below:

[monitor:///<path>/log/vertica.log-*]

disabled = 0

crcSalt = <SOURCE>

index = <IndexName>

 

If you still see the vertica.log is reading, trying adding below line in above Stanza

blacklist = vertica.log

 

That would be like below:

[monitor:///<path>/log/vertica.log-*]

disabled = 0

crcSalt = <SOURCE>

index = <IndexName>

blacklist = vertica.log

 

0 Karma

islam
Explorer

thanks a lot for your kindly reply.

we tried this solution  and we start receiving logs now.

 

0 Karma

venkateshparank
Path Finder

@islam If the solution helps you, then an upvote would be appreciated.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud’s AI Assistant in Action Series: Analyzing and ...

This is the second post in our Splunk Observability Cloud’s AI Assistant in Action series, in which we look at ...

Elevate Your Organization with Splunk’s Next Platform Evolution

 Thursday, July 10, 2025  |  11AM PDT / 2PM EDT Whether you're managing complex deployments or looking to ...

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...