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
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • 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)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to get my elastic logger table data in an automation script

Solved614 views9th April 2024Automation script Elastic logger table
2
Dieter Pappens [SLC] [DevOps Member]594 9th April 2024 0 Comments

As the title implies, I am trying to get my logger table data via an automation script.
My setup contains a remote TLS-enabled elastic database and a single DataMiner agent. This agent runs an element with a driver that fills up an elastic logger table.

Now for my use case I want to fetch this data and loop over it in order to do some actions based on what type of data it is.

How do I fetch this data via an automation script?

Dieter Pappens [SLC] [DevOps Member] Selected answer as best 9th April 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Joachim Ally [SLC] [DevOps Enabler]1.57K Posted 9th April 2024 0 Comments

Hi,

There are open-source Nuget Packages available that you can use in an Automation Script which enables you to directly query your ElasticSearch database. Note that it is important to check the compatibility with the ElasticSearch version your database is running on. If you are for example still on the supported 6.8 version that DataMiner is supporting, I would recommend to use the NEST client 7.17.5 (NuGet Gallery | NEST 7.17.5 ). For another user, this Nuget package worked fine to do queries on an ElasticSearch Database running version 6.8.0.

The code to initialize the client will look like this, where the ElasticURI is the URL and port to your elastic cluster (the same as you need to check the status of your database when setting up a connection with ElasticVue )

var connectionPool = new SingleNodeConnectionPool(new Uri(ElasticURI));
var settings = new ConnectionSettings(connectionPool);
var elasticClient = new ElasticClient(settings);

If you would already use an OpenSearch database as your indexing database, I think this client could help you further (opensearch-project/opensearch-net: OpenSearch .NET Client (github.com) ) but this I did not try it out myself.

Kind regards,
Joachim

Dieter Pappens [SLC] [DevOps Member] Selected answer as best 9th April 2024
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