* try and log to vector Signed-off-by: Jess Frazelle <github@jessfraz.com> * iupdates Signed-off-by: Jess Frazelle <github@jessfraz.com> * try and log to vector Signed-off-by: Jess Frazelle <github@jessfraz.com> * try and log to vector Signed-off-by: Jess Frazelle <github@jessfraz.com> * ud[ates Signed-off-by: Jess Frazelle <github@jessfraz.com> * ud[ates Signed-off-by: Jess Frazelle <github@jessfraz.com> * ud[ates Signed-off-by: Jess Frazelle <github@jessfraz.com> * ud[ates Signed-off-by: Jess Frazelle <github@jessfraz.com> * ud[ates Signed-off-by: Jess Frazelle <github@jessfraz.com> * ud[ates Signed-off-by: Jess Frazelle <github@jessfraz.com> * ud[ates Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
22 lines
470 B
TOML
22 lines
470 B
TOML
[sources.github-actions-file]
|
|
type = "file"
|
|
data_dir = "/tmp/vector"
|
|
include = ["/tmp/github-actions.log"]
|
|
|
|
# Modify the logs to include the action name.
|
|
[transforms.add-action-name]
|
|
type = "remap"
|
|
inputs = [ "github-actions-file" ]
|
|
source = '''
|
|
.action = "GITHUB_WORKFLOW"
|
|
.repo = "GITHUB_REPOSITORY"
|
|
.sha = "GITHUB_SHA"
|
|
.ref = "GITHUB_REF_NAME"
|
|
'''
|
|
|
|
[sinks.axiom]
|
|
type = "axiom"
|
|
inputs = ["add-action-name"]
|
|
token = "GH_ACTIONS_AXIOM_TOKEN"
|
|
dataset = "github-actions"
|