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
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Get Data From Opensearch using client NuGet

Solved468 views2nd August 2024Automation script opensearch
4
German Ballesteros [SLC] [DevOps Member]565 12th July 2024 0 Comments

I'm trying to get some data form OpenSearch databases using their client NuGet package in an Automation Script. I used the high-level and low-level commands to do the requests and we are not receiving anything from OpenSearch using the queries. Here is the documentation link we're using as a reference: https://opensearch.org/docs/latest/clients/OSC-dot-net/

I tried using a single nodeAddress and also a pool of node addresses to search in all nodes and we are still not receiving the information. Here are the commands we're using for requesting the data:

  • High-Level: client.Search<ChannelsData>(log => log.Index("_all").Query(q => q.Match(m => m.Field(f => f.LogsChannel).Query("testChannel"))));
  • Low-Level: client.Search<StringResponse>("_all", PostData.Serializable(
    new
    {
    query = new
    {
    match = new
    {
    LogsChannel = new
    {
    query = "testChannel"
    }
    }
    }
    }));

The string "_all" references all indexes in the nodeAddress(es) we're communicating with. The DMA also have communication and configured OpenSearch in the Agents.

Validating in OpenSearch DevTool, we're receiving data using the same query we're sending from the test Automation Script we created.

Do we need to add an extra filter/field in the query? Is there another way to retrieve OpenSearch data?

German Ballesteros [SLC] [DevOps Member] Selected answer as best 2nd August 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
German Ballesteros [SLC] [DevOps Member]565 Posted 2nd August 2024 0 Comments

Based on the investigations, we used the low-level .Net communication to get the desired information and create a custom JSON parser to parse and get the data needed.

German Ballesteros [SLC] [DevOps Member] Selected answer as best 2nd August 2024
You are viewing 1 out of 1 answers, click here to view all answers.
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

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin