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

I need to get logs last 10 min in c# #634

Open
kurubavinodkumar opened this issue May 9, 2023 · 1 comment
Open

I need to get logs last 10 min in c# #634

kurubavinodkumar opened this issue May 9, 2023 · 1 comment

Comments

@kurubavinodkumar
Copy link

kurubavinodkumar commented May 9, 2023

I need to get log last 10 min . I am not able to find a solution

example :
var parameters = new ContainerLogsParameters
{
ShowStdout = true,
ShowStderr = true,
Timestamps = true,
Since = "1"
};

Stream logStream = await (client.Containers.GetContainerLogsAsync(container.ID, parameters, default)).ConfigureAwait(false);

in above example what should I pass since value

@kurubavinodkumar kurubavinodkumar changed the title I need to get log last 10 min I need to get log last 10 min in c# May 9, 2023
@kurubavinodkumar kurubavinodkumar changed the title I need to get log last 10 min in c# I need to get logs last 10 min in c# May 9, 2023
@HofmeisterAn
Copy link
Contributor

The since and until parameter receives a UNIX timestamp. Here is an example. The count starts at the Unix Epoch.

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