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

Output from jobs #34

Closed
lmunch opened this issue Mar 15, 2023 · 3 comments
Closed

Output from jobs #34

lmunch opened this issue Mar 15, 2023 · 3 comments

Comments

@lmunch
Copy link
Contributor

lmunch commented Mar 15, 2023

The output only shows that the job as been executed but not the actual output from the job. Is there anyway to get the output from the jobs on stdout?

Thanks

@lmunch
Copy link
Contributor Author

lmunch commented Mar 16, 2023

Just noticed --verbose option prints the output from the job. My only problem now is the output contains \n and not real newlines, so I have created a pull request for that:
#35

@promzeus
Copy link

promzeus commented May 5, 2023

I got around this problem in logstash

    filter {
      json {
        skip_on_invalid_json => true
        source => "message"
        target => "json-data"
        add_tag => [ "_message_json_parsed" ]
      }
      if [kubernetes][container][name] =~ ".*-cron" {
        mutate {
          rename => { "[json-data][level]" => "[json-data][level_name]" }
          gsub => [ "[json-data][msg]", "\\\\n", "\n" ]
          remove_field => [ "message" ]
        }

replacing \n in the text with the real \n

@lmunch
Copy link
Contributor Author

lmunch commented May 9, 2023

Closed with #35 being merged

@lmunch lmunch closed this as completed May 9, 2023
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

No branches or pull requests

2 participants