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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for JSON data collection rule log_file format #26554

Open
1 task done
doka380 opened this issue Jul 5, 2024 · 0 comments
Open
1 task done

Support for JSON data collection rule log_file format #26554

doka380 opened this issue Jul 5, 2024 · 0 comments

Comments

@doka380
Copy link

doka380 commented Jul 5, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Description

The current documentation says the only possible format for log_file is "text". If there are no other ways to collect JSON log files except specifying "json" format (which is supported by ARM template), can this be added?

New or Affected Resource(s)/Data Source(s)

azurerm_monitor_data_collection_rule

Potential Terraform Configuration

resource "azurerm_monitor_data_collection_rule" "example" {
  name                        = "example-rule"
  [ ... ]

  data_sources {
    log_file {
      name          = "example-datasource-jsonlogfile"
      format        = "json"
      streams       = ["Custom-MyTableJsonData"]
      file_patterns = ["/var/log/jsonlog.log"]
    }


### References

_No response_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants