Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send logs to AWS ELB #11

Open
sriramkannan opened this issue Sep 24, 2020 · 2 comments
Open

Send logs to AWS ELB #11

sriramkannan opened this issue Sep 24, 2020 · 2 comments

Comments

@sriramkannan
Copy link

sriramkannan commented Sep 24, 2020

Not sure if this is already supported. But I am not able to send the data to my AWS ELB. The duosync.log says it's writing the logs but I don's see it getting written/sent.

Config:

version: '1.0.0'
servers:
  - id: 'data-pipeline-dev'
    hostname: '***.elb.us-east-1.amazonaws.com'
    port: 8081
    protocol: 'TCP'

account:
  ikey: '***'
  skey: '***'
  hostname: 'api-***.duosecurity.com'
  endpoint_server_mappings:
    - endpoints: ['adminaction', 'auth']
      server: 'data-pipeline-dev'
  is_msp: False

duosync.log

2020-09-24 16:14:56 INFO     Starting DuoLogSync
2020-09-24 16:14:56 INFO     DuoLogSync: Opening connection to ***elb.us-east-1.amazonaws.com:8081
2020-09-24 16:14:56 INFO     duo_client Admin initialized for ikey: *****, host: api-**.duosecurity.com
2020-09-24 16:14:56 INFO     adminaction producer: fetching next logs after 120 seconds
2020-09-24 16:14:56 INFO     adminaction consumer: waiting for logs
2020-09-24 16:14:56 INFO     auth producer: fetching next logs after 120 seconds
2020-09-24 16:14:56 INFO     auth consumer: waiting for logs
2020-09-24 16:16:56 INFO     adminaction producer: fetching logs
2020-09-24 16:16:56 INFO     auth producer: fetching logs
2020-09-24 16:16:57 INFO     adminaction producer: adding 35 logs to the queue
2020-09-24 16:16:57 INFO     adminaction producer: added 35 logs to the queue
2020-09-24 16:16:57 INFO     adminaction producer: fetching next logs after 120 seconds
2020-09-24 16:16:57 INFO     adminaction consumer: received 35 logs from producer
2020-09-24 16:16:57 INFO     adminaction consumer: writing logs
2020-09-24 16:16:57 INFO     adminaction consumer: successfully wrote all logs
2020-09-24 16:16:57 INFO     adminaction consumer: saving latest log offset to a checkpointing file
2020-09-24 16:16:57 INFO     adminaction consumer: waiting for logs
2020-09-24 16:17:00 INFO     auth producer: adding 6 logs to the queue
2020-09-24 16:17:00 INFO     auth producer: added 6 logs to the queue
2020-09-24 16:17:00 INFO     auth producer: fetching next logs after 120 seconds
2020-09-24 16:17:00 INFO     auth consumer: received 6 logs from producer
2020-09-24 16:17:00 INFO     auth consumer: writing logs
2020-09-24 16:17:00 INFO     auth consumer: successfully wrote all logs
2020-09-24 16:17:00 INFO     auth consumer: saving latest log offset to a checkpointing file
2020-09-24 16:17:00 INFO     auth consumer: waiting for logs
2020-09-24 16:18:57 INFO     adminaction producer: fetching logs
2020-09-24 16:18:57 INFO     adminaction producer: no new logs available
2020-09-24 16:18:57 INFO     adminaction producer: fetching next logs after 120 seconds
2020-09-24 16:19:00 INFO     auth producer: fetching logs
2020-09-24 16:19:04 INFO     auth producer: adding 1 logs to the queue
2020-09-24 16:19:04 INFO     auth producer: added 1 logs to the queue
2020-09-24 16:19:04 INFO     auth producer: fetching next logs after 120 seconds
2020-09-24 16:19:04 INFO     auth consumer: received 1 logs from producer
2020-09-24 16:19:04 INFO     auth consumer: writing logs
2020-09-24 16:19:04 INFO     auth consumer: successfully wrote all logs
2020-09-24 16:19:04 INFO     auth consumer: saving latest log offset to a checkpointing file
2020-09-24 16:19:04 INFO     auth consumer: waiting for logs
2020-09-24 16:20:58 INFO     adminaction producer: fetching logs
2020-09-24 16:20:59 INFO     adminaction producer: no new logs available
2020-09-24 16:20:59 INFO     adminaction producer: fetching next logs after 120 seconds
2020-09-24 16:21:04 INFO     auth producer: fetching logs
2020-09-24 16:21:09 INFO     auth producer: adding 0 logs to the queue
2020-09-24 16:21:09 INFO     auth producer: added 0 logs to the queue
2020-09-24 16:21:09 INFO     auth producer: fetching next logs after 120 seconds
2020-09-24 16:21:09 INFO     auth consumer: received 0 logs from producer
2020-09-24 16:21:09 INFO     auth consumer: No logs to write
2020-09-24 16:21:09 INFO     auth consumer: waiting for logs
@sriramkannan
Copy link
Author

Never mind. The ELB was listening on http. I changed it to tcp and it started working.

@rohanbendre
Copy link

Thanks for the update @sriramkannan. Glad it worked fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants