🚀 DevOps & SRE Certification Program 📅 Starting: 1st of Every Month 🤝 +91 8409492687 🔍 Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Datadog Tutorial: win32_event_log log setup using powershell


init_config:
instances:
- type:
- Information
- Critical
- Error
- Warning
- Information
- Audit Failure
- Audit Success
log_file:
- Application
- System
- Security
- Application
- Setup
- Symantec Endpoint Protection Client
logs:
- type: windows_event
channel_path: Application
source: Application
service: Application
sourcecategory: windowsevent
- type: windows_event
channel_path: Security
source: Security
service: Security
sourcecategory: windowsevent
- type: windows_event
channel_path: System
source: System
service: System
sourcecategory: windowsevent
- type: windows_event
channel_path: Setup
source: Setup
service: Setup
sourcecategory: windowsevent
# Download agent
(Invoke-WebRequest https://s3.amazonaws.com/ddagent-windows-stable/datadog-agent-7-latest.amd64.msi -OutFile c:\datadog-agent-7-latest.amd64.msi)
# Download .NET Tracer v1.13x64 .msi
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
(Invoke-WebRequest https://github.com/DataDog/dd-trace-dotnet/releases/download/v1.13.0/datadog-dotnet-apm-1.13.0-x64.msi -OutFile c:\datadog-dotnet-apm-1.13.0-x64.msi)
# Start the Datadog agent
(Start-Process -Wait msiexec -ArgumentList '/qn /i c:\datadog-agent-7-latest.amd64.msi APIKEY=xxx HOSTNAME="my_hostname" TAGS="mytag1,mytag2"')
# Start .NET Tracer v1.13x64
(Start-Process -Wait msiexec -ArgumentList '/qn /i c:\datadog-dotnet-apm-1.13.0-x64.msi')
# Enable logs and live process
((Get-Content -path C:\ProgramData\Datadog\datadog.yaml -Raw) -replace '# logs_enabled: false','logs_enabled: true') | Set-Content -Path C:\ProgramData\Datadog\datadog.yaml
(Add-Content C:\ProgramData\Datadog\datadog.yaml "`nprocess_config:`n enabled: true" )
# Delete Datadog agent .msi & .NET tracer agent v1.13x64
(Remove-Item -Path c:\datadog-agent-7-latest.amd64.msi)
(Remove-Item -Path c:\datadog-dotnet-apm-1.13.0-x64.msi)
# Configure win32_event_log
echo "init_config:
instances:
- type:
- Information
- Critical
- Error
- Warning
- Information
- Audit Failure
- Audit Success
log_file:
- Application
- System
- Security
- Application
- Setup
- Symantec Endpoint Protection Client
logs:
- type: windows_event
channel_path: Application
source: Application
service: Application
sourcecategory: windowsevent
- type: windows_event
channel_path: Security
source: Security
service: Security
sourcecategory: windowsevent
- type: windows_event
channel_path: System
source: System
service: System
sourcecategory: windowsevent
- type: windows_event
channel_path: Setup
source: Setup
service: Setup
sourcecategory: windowsevent" > C:\ProgramData\Datadog\conf.d\win32_event_log.d\conf.yaml
Subscribe
Notify of
guest


0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x