Getting Data In

Why is there an issue with monitoring log file monitoring?

akgmail
Engager

The test_new.html is getting update every 4 hours.The html file may or maynot have same number of lines.

The data is only coming immediately when I am adding say test data into the html file. That means the data flow is not an issue.  

I am expecting it to send me data as and when timestamp of the file changes. 
Need your suggestions on the same.

I have done below configuration

In UF agent I have  added inputs.conf as


[monitor:///root/splunkstorage/test_new.html]
disabled = false
index = test_normal
sourcetype = test:global:testnew:html
crcSalt = <SOURCE>

In the indexer I have props.conf 

[test:global:testnew:html]
DATETIME_CONFIG = CURRENT
CHECK_METHOD = modtime
LINE_BREAKER = (<html><body>)
NO_BINARY_CHECK = true
SEDCMD-addvalues = s/<head>/<html><body>\n<head>/g
TRUNCATE = 0
category = Custom
disabled = false
pulldown_type = true

Labels (1)
Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

You did restart the UF after changing the inputs.conf file, right?

Check the UF's logs to see if it explains why it's not reading the file.

BTW, if you change the LINE_BREAKER to 

LINE_BREAKER = ()<html><body>

then you won't need the SEDCMD.

---
If this reply helps you, Karma would be appreciated.
0 Karma

akgmail
Engager

Hi ,
Thanks for your response.

Yes I have restarted UF agent multiple times. I have check the logs index=_intenal host="uf_agent" source=splunkd I have not seen any ERROR.

I tested it again as I added a line to the test_new.html I can see the data immediately.

0 Karma

akgmail
Engager

If I am say adding a text "hello world" to test_new.html and saving it I am getting data in splunk.

However if I am doing vi test_new.html and saving the file I am not getting any data in splunk.

It seems to be weird issue .

0 Karma
Get Updates on the Splunk Community!

Database Performance Sidebar Panel Now on APM Database Query Performance & Service ...

We’ve streamlined the troubleshooting experience for database-related service issues by adding a database ...

IM Landing Page Filter - Now Available

We’ve added the capability for you to filter across the summary details on the main Infrastructure Monitoring ...

Dynamic Links from Alerts to IM Navigators - New in Observability Cloud

Splunk continues to improve the troubleshooting experience in Observability Cloud with this latest enhancement ...