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

Add Datadog Custom Log Management Functionality #774

Open
danielcbright opened this issue Jan 21, 2021 · 0 comments
Open

Add Datadog Custom Log Management Functionality #774

danielcbright opened this issue Jan 21, 2021 · 0 comments

Comments

@danielcbright
Copy link

Adding Log Management Functionality as a Built-in

This is to track the adding of the Log Management Functionality into the Datadog cookbook.

I already have a working recipe that looks like this:

include_recipe 'datadog::dd-agent'

# Logs Integration
#
# Here is the description of acceptable attributes:
# default['datadog']['logs_conf'] = {
#   'instances' = [
#     {
#       'type': 'file',
#       'path': '/path/to/log',
#       'service': 'service',
#       'source': 'source',
#       'sourcecategory': 'sourcecategory',
#       'tags' = [
#         '<KEY_1>:<VALUE_1>',
#         '<KEY_2>:<VALUE_2>',
#       ],
#       'log_processing_rules' = {
#         'type': 'multi_line',
#         'pattern': '\d{4}\-(0?[1-9]|1[012])\-(0?[1-9]|[12][0-9]|3[01])',
#         'name': 'new_log_start_with_date',
#       },
#     },
#   ],
# }

datadog_monitor 'logs_conf' do
  instances node['datadog']['logs_conf']['instances']
  use_integration_template false
  action :add
  notifies :restart, 'service[datadog-agent]' if node['datadog']['agent_start']
end

I'm trying to figure out what other attributes I should add, those are the ones I could find on the integrations page in DD.

@danielcbright danielcbright changed the title Add Datadog Log Management Functionality Add Datadog Custom Log Management Functionality Jan 21, 2021
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

1 participant