Comments (3)
Hi @cirsrejoe,
From what I read here, your objective is to have a /etc/datadog-agent/conf.d/logs.d/conf.yaml
file with the following contents:
logs:
- type: file
path: "/var/log/syslog"
service: "system"
- type: file
path: "/var/log/auth.log"
service: "system"
To get this with the formula, you need to do this:
checks:
logs:
config:
logs:
- type: file
path: "/var/log/syslog"
service: "system"
- type: file
path: "/var/log/auth.log"
service: "system"
Explanation (mostly taken from there):
The outermost logs
key indicates that you want to create a check named "logs", which will create the /etc/datadog-agent/conf.d/logs.d
directory (note that there is no specific restriction on the name of this check, you could name it system_logs
for instance and it would still be able to collect logs for you: only the contents of the check matter).
Then, the config
key of the logs
check indicates what the contents of the /etc/datadog-agent/conf.d/logs.d/conf.yaml
file will be. This is where you put the config file contents (as described above). In the case of logs collection, the config file itself contains the logs
key, which is why you have both an inner and an outer logs
key if you also named your check "logs".
from datadog-formula.
Hello @cirsrejoe, did the above suggestion work for your use case?
from datadog-formula.
Yes, I just saw this - closing the issue. Thank you!
from datadog-formula.
Related Issues (16)
- Add automated tests with masterless salt HOT 3
- [Amazon Linux] Bad id for repo: Datadog, Inc., byte = , 7 HOT 1
- No license file HOT 1
- Uninstall option?
- Support v6 Agent HOT 4
- Add configuration options to datadog.yml HOT 4
- failed to compile HOT 3
- Adhering to v6 agent conf.d directory structure HOT 2
- Unstable agent installed by default HOT 2
- Difficulty upgrading to agent v7 HOT 2
- add datadog user to groups through pillar config HOT 4
- Windows support HOT 2
- TraceFS no permissions, not respecting blacklists HOT 4
- Support for enabling network tracking HOT 1
- Repository is not signed, no pubkey 33EE313BAD9589B7 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datadog-formula.