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

Not getting logs on AWS EKS cluster #183

Open
rward27 opened this issue Feb 4, 2021 · 1 comment
Open

Not getting logs on AWS EKS cluster #183

rward27 opened this issue Feb 4, 2021 · 1 comment
Assignees

Comments

@rward27
Copy link

rward27 commented Feb 4, 2021

Hello, this has been a great plugin but I am facing some issues with this

I have a presto instance running on a namespace and it has a custom plugin and event-listener configured that gets all the logs and forwards them to 24224 port.

I can see the logs if they are written as log.info("any string here") but fluency.emit(tag, map<>) is not working at all and i dont see any logs or event object being sent to fluentd instance.

can you please help in configuring how it can work or how i can debug this when on AWS EKS?

Below is the fluency code:

Map<String, Object> builder = new HashMap<>();
builder.put("createTime", queryCompletedEvent.getCreateTime().toEpochMilli());
            builder.put("endTime", queryCompletedEvent.getEndTime().toEpochMilli());
            builder.put("executionStartTime", queryCompletedEvent.getExecutionStartTime().toEpochMilli());

log.info("Hello world"); // this works and i can see it in grafana dashboard or on console in kubectl logs of the pod

            fluency.emit("presto.query",builder);  // nothing happens and this doesnt emit anything on any pod instance
            fluency.close();
 
@komamitsu komamitsu self-assigned this Feb 11, 2021
@komamitsu
Copy link
Owner

komamitsu commented Feb 11, 2021

@rward27 Thanks for reporting the issue. I have 2 questions.

  1. How was the Fluency instance instantiated? Can you tell me the configuration of FluencyBuilderForFluentd?
  2. You didn't see any warning nor error messages from Fluency?

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