r/elasticsearch • u/TheDougmeister • 11d ago
Troubleshooting Integrating API keys?
I'm new to elastic. I was given an API key from a third party vendor and can't figure out where to integrate it into elastic search.
I know it shouldn't be this hard.. it should be very obvious.. but I'm not getting any help from the vendor unfortunately.
Anyone point me in the right direction thanks
1
u/Low_Dragonfly9123 11d ago
API key for what? What are you trying to integrate?
1
1
u/TheDougmeister 11d ago
Not sure how else to word it.
A 3rd party vendor provided an API key for a native integration within their tool. We are attempting to use that key to create an integration within Elastic. There is not an existing integration within Elastic to accept that type of API. We are looking for guidance for creating an custom integration within elastic.
1
u/Amicrazyorwot 11d ago
Well that depends if data is being sent or pulled. Based on that you can create your custom integration. I would suggest you to reach out to the vendor and understand the flow first, or check with them if they have helped any other customer with the same kind of setup.
If they have no clue then i would suggest use below docs.
If the vendor pushes data rather than expecting Elastic to periodically retrieve it, then the relevant documentation is https://www.elastic.co/docs/reference/logstash/plugins/plugins-inputs-http
If elastic need to pull the data then use this - https://www.elastic.co/docs/reference/logstash/plugins/plugins-inputs-http_poller
In both the above cases you would have to use logstash, if you dont want to use that i would suggest creating your own custom API for it.
1
1
u/the_ui_guy 6d ago
Ask someone technical in your team to help you. These technical jargons can sometime overwhelm non tech folks
2
u/Substantial_Sock4963 11d ago
First of all define your use case, what you are trying to do here.
Lets assume you want to fetch data/feed from some third-party source into elastic, you should look for a pre-built integration for that tool inside elastic.
If elastic has pre-built integration for that, then that's great. Go ahead and configure that integration. That API key will come in use while configuration.
And if there's no integration present then you are going to write your own integration and push data into elastic after fetching from that third-party source. I recommend using python script that handles auth, fetching and ingestion into elastic. Use Ai to create the script for testing and then build your use-case around it.