# Connect to Okta module of Filebeat via proxy

**URL:** https://discuss.elastic.co/t/connect-to-okta-module-of-filebeat-via-proxy/267480
**Category:** Beats
**Tags:** beats-module, filebeat
**Created:** [March 17, 2021, 10:59am UTC](https://discuss.elastic.co/t/connect-to-okta-module-of-filebeat-via-proxy/267480 "2021-03-17T10:59:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Aditya\_Srivastava1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aditya_srivastava1/32/78687_2.png) [@Aditya\_Srivastava1](https://discuss.elastic.co/u/Aditya_Srivastava1)
#### Post date: [March 17, 2021, 11:00am UTC](https://discuss.elastic.co/t/connect-to-okta-module-of-filebeat-via-proxy/267480/1 "2021-03-17T11:00:00Z")

</div>

Hi,  
As I want to fetch logs from Okta, I am using filebeat 7.11 to do it. In the modules.d directory of filebeat, I can see configurations for Okta available.

I have entered the URL & credentials mentioned there. But now the problem is the URL is accessible via a proxy from my environment.  
Where do I configure the proxy setting like  
Proxy URL, Proxy Port, Proxy username, Proxy password, etc

Now had I used logstash http\_poller input to connect to Okta API, below would have been my configuration,

```auto
    urls => {
                        test2 => {
                                method => get
                                url => "https://okta/api/v1/logs"
                                headers => {
                                        Accept => "application/json"
                                        Authorization => "KEY *****************"
                                }
                        }
                }
                proxy => { host => "1.2.3.4" port => 4444 scheme => "http"}
                request_timeout => 60
                schedule => { cron => "0 * * * *"}
                codec => "json"

```

But I dont see any such options while configuring Okta in filebeat.

Any input how to achieve this would be really helpful.

Thanks,

---

<div class="post-metadata">

### Author: ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)
#### Post date: [March 17, 2021, 6:00pm UTC](https://discuss.elastic.co/t/connect-to-okta-module-of-filebeat-via-proxy/267480/2 "2021-03-17T18:00:46Z")

</div>

Hi @Aditya_Srivastava1,

I looked through the `okta` Filebeat module [code](https://github.com/elastic/beats/tree/master/x-pack/filebeat/module/okta), including the underlying `httpjson` Filebeat input [code](https://github.com/elastic/beats/tree/master/x-pack/filebeat/input/httpjson), and I don't see any support for specifying a proxy.

If you have a GitHub account, would you mind filing an [enhancement request](https://github.com/elastic/beats/issues/new?assignees=&labels=&template=feature-request.md) for this feature?

Thanks,

Shaunak

---

<div class="post-metadata">

### Author: ![Aditya\_Srivastava1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aditya_srivastava1/32/78687_2.png) [@Aditya\_Srivastava1](https://discuss.elastic.co/u/Aditya_Srivastava1)
#### Post date: [March 17, 2021, 8:49pm UTC](https://discuss.elastic.co/t/connect-to-okta-module-of-filebeat-via-proxy/267480/3 "2021-03-17T20:49:06Z")

</div>

Hi @shaunak ,

Thanks for the update. As requested I have requested for this feature [Connect to Okta module of Filebeat via proxy · Issue #24615 · elastic/beats · GitHub](https://github.com/elastic/beats/issues/24615#issue-834162282)

Also, would like to ask and not sure, but filebeat has other modules which are cloud based log integration (with URL & credentials).  
Is the above issue reflected in all those modules or just this one.  
I checked for cisco module which has Umbrella configuration and that too does not have options to add proxy details.

Is there probably some way to configure proxy as a common parameter for all rqst going to cloud APIs.  
If not, then I would not be able to use filebeat for any such module. Right?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 14, 2021, 10:49pm UTC](https://discuss.elastic.co/t/connect-to-okta-module-of-filebeat-via-proxy/267480/4 "2021-04-14T22:49:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
