Skip to main content


Hello Everyone, i wrote a python script that sends an authentication request, receives JWT and uses the token to pull events from a service, using rest api. the response is a json array.


as initial phase, and to make things easier (i hope), I created a stadnalone script that doesn't require any parameters to be executed. I already installed Siemplify and was able to login, i also created an integration and imported the common libraries. but i'm stuck now, and i'm not sure how to proceed in order to execute the script, parse the results and eventually display them in the dashboard. appreciate your help.


Hey welcome to the community! I’d recommend turning your script into a Connector. Connectors are used by the platform to ingest data and turn them into alerts. It sounds like your script can already grab the data it wants to bring into siemplify, the next step is transforming that data into Siemplify’s alert format.


I think the best reference to get started is the
My First Connector
docs. It walks through the process with an email connector example.



Hi
@Elad Elkes



Thank you,
@JoshShomo
, for your great answer

In addition to that, here is some more information that could help.


Develop your first integration



Develop your first Action
.


If you have further questions, I invite you to write us again, and we will try to help.



Thank you guys, appreciate your quick response.



hey guys, maybe you guys know if there's a description somewhere for exceptions i see when i run the connector "Test"? this is the response i get:



View files in slack



ouch. I havent seen that before and I havent decompiled the .net code in order to know what’s going on behind the scenes. are you on a on-prem installation or a cloud installation?



if on-prem or running in a VM you can try running
systemctl restart Siemplify*
to see if there’s just a hanging process with your new installation. The turn it off and back on again approach.



Hello
@Elad Elkes
and thank you
@JoshShomo
for your help!


Can you please share what is the version you have deployed? Navigate to the settings-> License Management (Attached an image for your reference)


In addition, this error is related to the imports you have made in the connector's script. In order to optimize the investigation could you please send your connector's script so I can test it? (Privately or here, whatever feels comfortable for you of course
)



View files in slack



Thank you for replying, i found the problem. i added some dependencies to the integration, when i removed them, the script executed fine. Next time, are there additional logs i can look into, on the docker it self maybe?



onward to try and visualize the json response, wish me luck



Regarding the logs:


Navigate to the Settings-> Advanced-> Logs. There you can download the logs folder locally (Attached images for your reference).

Open the downloaded folder and navigate to the connectors folder, there you can find the relevant connector folder which contains the connector logs for further investigations.




Regarding the JSON Response:



Assuming you have extracted a JSON by the executed API calls, you will need to flatten the JSON in order to insert it as event fields into Siemplify.


I will join
@JoshShomo
recommendation on checking our
connector documentation
, please let us know if you have any further questions.



View files in slack


Reply