Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
  • Downloads
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • >> Go to dataminer.services

Correlation rule interaction

Solved598 views4 days agoautomation scipt Correlation rule Correlation rules
1
Charlie Sampson41 30th January 2025 0 Comments

Working enabling correlation rules via automation script code is there a code call that returns the status of a correlation rule either enabled or disabled?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 4 days ago

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
4
Pieter Carlu [SLC] [DevOps Advocate]170 Posted 30th January 2025 0 Comments

Hi Charlie,

You can use the GetCorrelationRuleMessage for this:

var msg = new GetCorrelationRuleMessage()
{
RuleName = “Correlation rule”
};
var resp = engine.SendSLNetSingleResponseMessage(msg) as GetCorrelationRuleResponse;
var isEnabled = resp?.Definition.IsEnabled;

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 4 days ago
2
Miguel Obregon [SLC] [DevOps Catalyst]19.60K Posted 30th January 2025 2 Comments

Hi Charlie,

I believe there is a similar question:

How to enable/disable correlation rule from code?

Hope it helps.

Miguel Obregon [SLC] [DevOps Catalyst] Edited comment 30th January 2025
Charlie Sampson commented 30th January 2025

Thank you for the information however I am more after a "rule status" call to find out if enabled or disabled?

Miguel Obregon [SLC] [DevOps Catalyst] commented 30th January 2025

Hi Charlie,
If you have a look at the snippet provided in the answer to the question, you will find the method enableCorrelationRule. This method will retrieve an existing correlation rule. The property IsEnabled will provide you the current status of the correlation rule.
Hope it helps.

0
Charlie Sampson41 Posted 30th January 2025 0 Comments

The information fully answers my question. Thank you to both Miguel and Pieter for the pointers.

Charlie Sampson Answered question 30th January 2025
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs