So I've deployed the File Meta Data app to a heavy forwarder running on Linux, If I restart splunk the directory information is sent to the indexer at that time and never again. I created a 2nd app and deployed that to a Windows server with a Heavy Forwarder and that will index the contents of the directory on the scheduled interval.
Any suggestions on how to get the Linux data indexed would be great.
filehashlimit = 500MB
filepath = /path/scripts
host = host
includefilehash = 0
index = filemon
interval = 10m
onlyifchanged = 0
recurse = 1
Could you let me know if you see anything worth noting when you run the following search?
index=_internal (sourcetype=file_meta_data_modular_input OR (ExecProcessor "file_meta_data" sourcetype=splunkd))
Tracebacks would be of particular interest.
For the record - I'm running 1.1.1. Upon closer examination there is one directory that I didn't notice that splunk doesn't have access to, I selected a different directory and get the expected results. So.....my next question is, any recommendations on how to blacklist a directory? In my case, the directory contains files and several subdirectories, I want to index everything except the the directory called 'admin'
thanks for getting back to me. so nothing in splunkd after the startup relating to "filemetadata", I found this in the "splunk/var/log/splunk/filemetadatamodularinput.log", these are the last lines:
2017-03-22 18:19:02,856 INFO Time is later than filter, stmtime=1490213086.0038838, mustbelaterthan=None, path='/lawprd/scripts'
2017-03-22 18:19:02,856 INFO Completed retrieval of file data, count=202, path=/lawprd/scripts
2017-03-22 18:19:02,861 ERROR Execution failed
Traceback (most recent call last):
File "/lawprd/splunk/etc/apps/finappslawsonfilemon/bin/fileinfoapp/modularinput.py", line 1320, in execute
File "/lawprd/splunk/etc/apps/finappslawsonfilemon/bin/fileinfoapp/modularinput.py", line 1220, in dorun
File "/lawprd/splunk/etc/apps/finappslawsonfilemon/bin/filemeta_data.py", line 508, in run
result['time'] = time.strftime("%a %b %d %H:%M:%S %Y")
TypeError: list indices must be integers, not str
I'm struggling to figure this out.
Could you let me know a few things?