[
https://issues.apache.org/jira/browse/AMBARI-21145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16046666#comment-16046666
]
Keta Patel commented on AMBARI-21145:
-------------------------------------
Hello Oliver,
While processing the *_"path"_* of _*"input"*_ parameter from a
<service>-logsearch-conf.xml file, is it possible to select multiple files
matching the regex provided in the "path" or just the first match from the many
options matching the regex gets selected for Logfeeder input?
In my analysis only the 1st match from the "path" regex gets picked up. There
is existing logic to check for wildcards, but this code is executed only for
those files in the "notReadyList" of the InputManager class. Files in this list
are put when no matching file is found for the "path" regex during config
loading stage. However, for a regex that matches with at least one of the files
in the location, the 1st match gets added to the "inputList" of InputManager
class. Please share your input on my understanding of how this logic works.
Thank you,
Keta
> allow wildcard for log directory folder in the path component of Logfeeder
> input
> --------------------------------------------------------------------------------
>
> Key: AMBARI-21145
> URL: https://issues.apache.org/jira/browse/AMBARI-21145
> Project: Ambari
> Issue Type: Improvement
> Components: logsearch
> Affects Versions: 2.5.0
> Reporter: Keta Patel
> Assignee: Keta Patel
> Priority: Minor
>
> The wildcard processing in Logfeeder is carried out only for the last file
> component in the log path. For a few services, where there are multiple log
> folders and log files from each of the folders is desired to be parsed in
> Logsearch UI, the lack of a wildcard processing for the previous portions
> becomes an issue. Hence, introducing wildcard processing for the log
> directory part of the "path" in the Logfeeder's input for the service will
> help resolve this issue.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)