Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.2.0
-
None
-
Added new optional config directive 'shell' for Exec source. This enables support for commands that use wildcards, backticks, pipes and other such shell features.
Description
- command line parsing
- conf/flume.conf
agent.sources.source1.type = exec agent.sources.source1.command = tail -f /some/path/logs/exception/error.log.`date +%Y%m%d%H`
- result
tail: /some/path/logs/exception/error.log.`date: No such file or directory tail: +%Y%m%d%H`: No such file or directory
- needs to be improved
(ExecSouce.java:242) String[] commandArgs = command.split("\\s+")
- conf/flume.conf
- using special character (e.g. *, `, ', ...)
- conf/flume.conf
agent.sources.source1.type = exec agent.sources.source1.command = tail -f /some/path/logs/exception/error.log.*
- result
tail: /some/path/logs/exception/error.log.*: No such file or directory
- needs to be improved
(ExecSouce.java:243) process = new ProcessBuilder(commandArgs).start();
- conf/flume.conf
Attachments
Attachments
Issue Links
- links to