Skip to content

Create OVH API#282

Open
ashivaakrishna wants to merge 1 commit into
IBM:masterfrom
ashivaakrishna:patch-1
Open

Create OVH API#282
ashivaakrishna wants to merge 1 commit into
IBM:masterfrom
ashivaakrishna:patch-1

Conversation

@ashivaakrishna
Copy link
Copy Markdown

Issue of OVH api connectivity

Issue of OVH api connectivity
Copy link
Copy Markdown
Author

@ashivaakrishna ashivaakrishna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need help on the code

@ChrisCollinsIBM
Copy link
Copy Markdown
Contributor

hi @ashivaakrishna, if you're looking for some assistance with the workflow itself, post something up in Discussions with what you're having trouble with and we'll see if we can help!

@ChrisCollinsIBM
Copy link
Copy Markdown
Contributor

Without knowing what you were specifically looking for, I added some questions an suggestions In-line on the PR. Feel free to discuss or clarify there.

Copy link
Copy Markdown
Contributor

@ChrisCollinsIBM ChrisCollinsIBM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some questions and guidance left on the PR, I wasn't sure what you were having issues with so I tried to add helpful comments and questions as needed.

</If>

<!-- Extract Stream ID -->
<Set path="/streamId" value="${/get_streams/body/streams[0]/id}" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're accessing streams[0] here, do you possible need to iterate over multiple in the array?

<Set path="/streamId" value="${/get_streams/body/streams[0]/id}" />

<!-- Get Messages - View Search -->
<CallEndpoint url="${/serverurl}/api/views/search/messages" method="POST" savePath="/search_messages">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this endpoint require authentication? You're using BasicAuthentication in the streams call, but none here.

</If>

<!-- Get Universal Search Messages -->
<CallEndpoint url="${/serverurl}/api/search/universal/absolute?query=*&amp;from=2025-01-23T15:34:49.000Z&amp;to=2025-01-22T15:34:49.000Z&amp;decorate=true&amp;filter=streams:${/streamId}" method="GET" savePath="/search_universal">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same authorization question here, does this endpoint need auth?

Also, is a blank query= a required parameter in this API? & separates URL parameters so query here is empty.

I see you have hardcoded from/to dates here, I assume that's just for testing functionality so you'll eventually need to those to be dynamic so on each run you can save a new time window. It's usually best to take the timestamp of the last event you received as the next "from" value as relying on fixed windows is susceptible to time sync issues (always asking for a 1 minute window for example). It's best to ask for the timestamp of the last event (+1 millisecond possibly) to "now".

@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Workflow name="Graylog_OVH" version="1.0" xmlns="http://qradar.ibm.com/UniversalCloudRESTAPI/Workflow/V1">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update this to V2_1 so you can omit the source tag in postEvents, V2_1 is the latest schema.

Suggested change
<Workflow name="Graylog_OVH" version="1.0" xmlns="http://qradar.ibm.com/UniversalCloudRESTAPI/Workflow/V1">
<Workflow name="Graylog_OVH" version="1.0" xmlns="http://qradar.ibm.com/UniversalCloudRESTAPI/Workflow/V2_1">

</If>

<!-- Get Universal Search Messages -->
<CallEndpoint url="${/serverurl}/api/search/universal/absolute?query=*&amp;from=2025-01-23T15:34:49.000Z&amp;to=2025-01-22T15:34:49.000Z&amp;decorate=true&amp;filter=streams:${/streamId}" method="GET" savePath="/search_universal">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, if you will be iterating over streams, you'll need to persist a unique from timestamp for each stream to ensure you don't duplicate or miss data.

@ChrisCollinsIBM ChrisCollinsIBM added the workflow-submission Issue linked to a pull request for a workflow submission label Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

workflow-submission Issue linked to a pull request for a workflow submission

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants