# Logs to Logstash Fail

**URL:** <https://community.auth0.com/t/logs-to-logstash-fail/47263>\
**Category:** Get Help\
**Tags:** extensions, logstash\
**Created:** [July 31, 2020, 11:54am UTC](https://community.auth0.com/t/logs-to-logstash-fail/47263 "2020-07-31T11:54:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roshni1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/roshni1/32/18183_2.png) [@roshni1](https://community.auth0.com/u/roshni1)\
**Post date:** [July 31, 2020, 11:54am UTC](https://community.auth0.com/t/logs-to-logstash-fail/47263/1 "2020-07-31T11:54:08Z")

</div>

Hi, I am trying to set up Logstash for logs but each log export fails with e.g.

```auto
checkpoint: 90020200729141716280000757738638214755286894288805298194
start: 2020-07-31T11:37:01.494Z
end: null
logsProcessed: 0
error: [{"error":{"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"0.0.0.0","port":8080},"status":500},"Skipping logs from null to 90020200729141716280000757738638214755286894288805298194 after 5 retries."]

```

My logstash conf files looks like this

```auto
input {
  http {
    type => auth0
    port => 8080

  }
}

filter {
  mutate {
    rename => {
       "_id" => "log_id"
    }
  }
}

output {
  stdout {}
}

```

I have ran curl commands for `http://0.0.0.0:8080`, they work and I can see them appear in logstash. This url is the same as the LOGSTASH\_URL I set up in Auth0, with index=“Auth0” and no other changes to default settings. Any reasons why the connection might not be working?

Thanks

---

<div class="post-metadata">

**Author:** ![karen1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karen1/32/18279_2.png) [@karen1](https://community.auth0.com/u/karen1)\
**Post date:** [August 12, 2020, 2:32pm UTC](https://community.auth0.com/t/logs-to-logstash-fail/47263/2 "2020-08-12T14:32:33Z")

</div>

Good morning,

Is this a first time set up or was it running previously?

Extensions use our webtask platform and since they’re limited to running 30 seconds at a time, this can cause timeouts. We realize this can be an issue and it’s part of the reason we developed the new log streaming functionality ([Log Streams](https://auth0.com/docs/logs/streams)).

If the uploads take too long the job will be killed and I think that would cause those socket hangups/timeouts.

A possible workaround might be to reduce the batch size and increase the run frequency in the extension’s configuration.

If you continue to experience issues, I recommend un-installing the extension, regenerating a **LOGSTASH\_TOKEN** , reinstalling and re-configuring the extension. In addition, I would recommend try changing the configuration to port to 443 and let’s see if it helps to resolve the issue.

Thanks!
