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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...