we have .Net application & getting continuassly events ever 20 S. Can you please guide me how to stop noice. I have disabled but still persist.
Thanks
Dinesh
Hi @dineshchoudhary,
When your "Ignored Messages" configuration isn't working to filter out EventLogger errors in AppDynamics, you need a more comprehensive approach. Here are several methods to stop those noisy events:
## Method 1: Correct Configuration of Error Detection Rules
The way you've configured the ignored message might not be matching correctly. Try these variations:
1. Use wildcards in your ignore pattern:
a. Use "xxxx.Logs.EventLogger*" instead of the exact message
b. Try "*EventLogger*Error*" to match more broadly
c. Make sure there are no hidden characters in your pattern
2. Check case sensitivity:
a. AppDynamics error matching can be case-sensitive
b. Try matching with both uppercase and lowercase variations
## Method 2: Agent Configuration File Approach
If the UI-based configuration isn't working, modify the agent config file directly:
1. Locate your agent configuration file:
a. For .NET agent: Look for "config.xml" file in the installation directory
b. Typically found in "C:\ProgramData\AppDynamics\DotNetAgent\Config"
2. Add the error exclusion in the configuration file:
```xml
<configuration>
<errorDetection>
<ignoredExceptions>
<exception>
<exceptionType>xxxx.Logs.EventLogger</exceptionType>
<exceptionMessage>Error Message: Error</exceptionMessage>
</exception>
</ignoredExceptions>
</errorDetection>
</configuration>
```
3. Restart the application and the AppDynamics agent after making changes
## Method 3: Code-Based Solution
If you have access to the application code, consider modifying the logging implementation:
1. In your .NET application, modify the EventLogger class:
a. Add logic to prevent reporting these specific errors to AppDynamics
b. Use AppDynamics API to exclude certain log messages
```csharp
// Example code to prevent AppD from capturing certain errors
try
{
// Your code that might log errors
}
catch (Exception ex)
{
// Use AppDynamics API to mark as "do not report"
AppDynamics.Agent.Transaction.GetCorrelatingTransaction().DoNotReportAsError();
// Continue with your regular logging
EventLogger.LogError("Error Message: Error");
}
```
## Method 4: Application Tier Settings
You might need to adjust settings at the tier level:
1. Navigate to your application configuration:
a. Open AppDynamics Controller UI
b. Go to Applications > [Your Application] > Configuration > Error Detection
2. Check both "Errors to Ignore" and "Custom Error Detection" sections:
a. Add your pattern in both locations
b. Use "Contains" match criteria rather than "Equals"
3. Apply changes to the specific tier where your .NET application is running
If these approaches don't resolve the issue, the error messages might be coming from a different source than expected or there might be a configuration sync issue between your agent and the controller.
Please give 👍 for support & Mark as solution 😁 happly splunking .... 😎
i have disabled like under - Coniguration-Instrumentations- Error Detections-Ignored Messages - xxxx.Logs.EventLogger : Error Message: Error but still creating noice. please guide how to stop this.
Thanks