Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log passthrough #207

Merged
merged 3 commits into from
Feb 7, 2024
Merged

Log passthrough #207

merged 3 commits into from
Feb 7, 2024

Conversation

hardillb
Copy link
Contributor

@hardillb hardillb commented Feb 5, 2024

part of FlowFuse/flowfuse#3324

Description

Allow nr-launcher to print Node-RED logs (in JSON format) to stdout. This allows it to be ingested by log services on docker/k8s

Related Issue(s)

FlowFuse/flowfuse#3324

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production

Labels

  • Backport needed? -> add the backport label
  • Includes a DB migration? -> add the area:migration label

@hardillb hardillb added this to the 2.1 milestone Feb 5, 2024
@hardillb hardillb self-assigned this Feb 5, 2024
@hardillb hardillb marked this pull request as draft February 5, 2024 17:29
@hardillb hardillb marked this pull request as ready for review February 6, 2024 10:43
Copy link
Contributor

@Steve-Mcl Steve-Mcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand from reading the issue this is an MVP (i.e. we are NOT outputting "Elastic Common Schema (ECS) format" as requested by the OP) so I fully agree with the approach of using an ENV VAR (permitting the user who requires this can simply add FORGE_LOG_PASSTHROUGH ) as a good MVP.

However, will there be an update to the docs to accompany this? Or is it intentionally a "behind the scenes" feature Ben?

@hardillb
Copy link
Contributor Author

hardillb commented Feb 7, 2024

The doc updates are included in the driver update PRs that allow you to enable this.

@Steve-Mcl
Copy link
Contributor

The doc updates are included in the driver update PRs that allow you to enable this.

Perfect - thanks for letting me know.

@Steve-Mcl Steve-Mcl merged commit 2e86caf into main Feb 7, 2024
5 checks passed
@Steve-Mcl Steve-Mcl deleted the log-passthrough branch February 7, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants