We have our httpd logs in /var/log/httpd, but some are of a different format. However, they do have consistent naming options, so we have:
in /opt/splunkforwarder/etc/apps/search/local/inputs.conf:
[monitor:///var/log/httpd/*_log]
disabled = false
so all files named "*_log" in the folder are monitored, but they might not get the right sourcetype. Within props.conf, we have:
[source::/var/log/httpd/http...error_log]
sourcetype=apache_error
[source::/var/log/httpd/http...access_log]
sourcetype=access_common
[source::/var/log/httpd/...track_log]
sourcetype=track_log
That sets the appropriate sourcetype on each. Note that props.conf uses "..." as a wildcard, NOT "*" which might be your problem.
... View more