Heka supports two different working directory type values, a base_dir for read/write access and a share_dir for read-only access (see http://hekad.readthedocs.org/en/v0.8.2/config/index.html#global-configuration-options). If a sandbox plugins uses a relative path for its filename setting, it will be computed relative to the share_dir (see http://hekad.readthedocs.org/en/v0.8.2/config/common_sandbox_parameter.html#config-common-sandbox-parameters).
-r On 01/12/2015 04:29 AM, Alex Sanami wrote:
Does anybody know if there is working directory variable available which can be used inside a configuration file. For example, I would like to be able to use a lua script that is relative to my configuration file. hekad -config hekad.toml [json_decoder] type = "SandboxDecoder" script_type = "lua" filename = "./json_transform.lua" I can use %ENV[PWD] but this isn't necessarily available if I run heka from within a docker application: docker run -d -v /work/hekad.toml:/etc/hekad/hekad.toml -v /work/json_transform.lua:/etc/hekad/json_transform.lua --workdir /etc/hekad frosquin/hekad Any advice on this would be gratefully appreciated? Thanks Alex _______________________________________________ Heka mailing list [email protected] https://mail.mozilla.org/listinfo/heka
_______________________________________________ Heka mailing list [email protected] https://mail.mozilla.org/listinfo/heka

