1. Packages
  2. Docker Provider
  3. API Docs
  4. getLogs
Docker v4.5.6 published on Tuesday, Sep 24, 2024 by Pulumi

docker.getLogs

Explore with Pulumi AI

docker logo
Docker v4.5.6 published on Tuesday, Sep 24, 2024 by Pulumi

    docker.getLogs provides logs from specific container

    Using getLogs

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getLogs(args: GetLogsArgs, opts?: InvokeOptions): Promise<GetLogsResult>
    function getLogsOutput(args: GetLogsOutputArgs, opts?: InvokeOptions): Output<GetLogsResult>
    def get_logs(details: Optional[bool] = None,
                 discard_headers: Optional[bool] = None,
                 follow: Optional[bool] = None,
                 logs_list_string_enabled: Optional[bool] = None,
                 name: Optional[str] = None,
                 show_stderr: Optional[bool] = None,
                 show_stdout: Optional[bool] = None,
                 since: Optional[str] = None,
                 tail: Optional[str] = None,
                 timestamps: Optional[bool] = None,
                 until: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetLogsResult
    def get_logs_output(details: Optional[pulumi.Input[bool]] = None,
                 discard_headers: Optional[pulumi.Input[bool]] = None,
                 follow: Optional[pulumi.Input[bool]] = None,
                 logs_list_string_enabled: Optional[pulumi.Input[bool]] = None,
                 name: Optional[pulumi.Input[str]] = None,
                 show_stderr: Optional[pulumi.Input[bool]] = None,
                 show_stdout: Optional[pulumi.Input[bool]] = None,
                 since: Optional[pulumi.Input[str]] = None,
                 tail: Optional[pulumi.Input[str]] = None,
                 timestamps: Optional[pulumi.Input[bool]] = None,
                 until: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetLogsResult]
    func GetLogs(ctx *Context, args *GetLogsArgs, opts ...InvokeOption) (*GetLogsResult, error)
    func GetLogsOutput(ctx *Context, args *GetLogsOutputArgs, opts ...InvokeOption) GetLogsResultOutput

    > Note: This function is named GetLogs in the Go SDK.

    public static class GetLogs 
    {
        public static Task<GetLogsResult> InvokeAsync(GetLogsArgs args, InvokeOptions? opts = null)
        public static Output<GetLogsResult> Invoke(GetLogsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogsResult> getLogs(GetLogsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: docker:index/getLogs:getLogs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Docker Container
    Details bool
    DiscardHeaders bool
    Discard headers that docker appends to each log entry
    Follow bool
    LogsListStringEnabled bool
    If true populate computed value logs_list_string
    ShowStderr bool
    ShowStdout bool
    Since string
    Tail string
    Timestamps bool
    Until string
    Name string
    The name of the Docker Container
    Details bool
    DiscardHeaders bool
    Discard headers that docker appends to each log entry
    Follow bool
    LogsListStringEnabled bool
    If true populate computed value logs_list_string
    ShowStderr bool
    ShowStdout bool
    Since string
    Tail string
    Timestamps bool
    Until string
    name String
    The name of the Docker Container
    details Boolean
    discardHeaders Boolean
    Discard headers that docker appends to each log entry
    follow Boolean
    logsListStringEnabled Boolean
    If true populate computed value logs_list_string
    showStderr Boolean
    showStdout Boolean
    since String
    tail String
    timestamps Boolean
    until String
    name string
    The name of the Docker Container
    details boolean
    discardHeaders boolean
    Discard headers that docker appends to each log entry
    follow boolean
    logsListStringEnabled boolean
    If true populate computed value logs_list_string
    showStderr boolean
    showStdout boolean
    since string
    tail string
    timestamps boolean
    until string
    name str
    The name of the Docker Container
    details bool
    discard_headers bool
    Discard headers that docker appends to each log entry
    follow bool
    logs_list_string_enabled bool
    If true populate computed value logs_list_string
    show_stderr bool
    show_stdout bool
    since str
    tail str
    timestamps bool
    until str
    name String
    The name of the Docker Container
    details Boolean
    discardHeaders Boolean
    Discard headers that docker appends to each log entry
    follow Boolean
    logsListStringEnabled Boolean
    If true populate computed value logs_list_string
    showStderr Boolean
    showStdout Boolean
    since String
    tail String
    timestamps Boolean
    until String

    getLogs Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    LogsListStrings List<string>
    List of container logs, each element is a line.
    Name string
    The name of the Docker Container
    Details bool
    DiscardHeaders bool
    Discard headers that docker appends to each log entry
    Follow bool
    LogsListStringEnabled bool
    If true populate computed value logs_list_string
    ShowStderr bool
    ShowStdout bool
    Since string
    Tail string
    Timestamps bool
    Until string
    Id string
    The provider-assigned unique ID for this managed resource.
    LogsListStrings []string
    List of container logs, each element is a line.
    Name string
    The name of the Docker Container
    Details bool
    DiscardHeaders bool
    Discard headers that docker appends to each log entry
    Follow bool
    LogsListStringEnabled bool
    If true populate computed value logs_list_string
    ShowStderr bool
    ShowStdout bool
    Since string
    Tail string
    Timestamps bool
    Until string
    id String
    The provider-assigned unique ID for this managed resource.
    logsListStrings List<String>
    List of container logs, each element is a line.
    name String
    The name of the Docker Container
    details Boolean
    discardHeaders Boolean
    Discard headers that docker appends to each log entry
    follow Boolean
    logsListStringEnabled Boolean
    If true populate computed value logs_list_string
    showStderr Boolean
    showStdout Boolean
    since String
    tail String
    timestamps Boolean
    until String
    id string
    The provider-assigned unique ID for this managed resource.
    logsListStrings string[]
    List of container logs, each element is a line.
    name string
    The name of the Docker Container
    details boolean
    discardHeaders boolean
    Discard headers that docker appends to each log entry
    follow boolean
    logsListStringEnabled boolean
    If true populate computed value logs_list_string
    showStderr boolean
    showStdout boolean
    since string
    tail string
    timestamps boolean
    until string
    id str
    The provider-assigned unique ID for this managed resource.
    logs_list_strings Sequence[str]
    List of container logs, each element is a line.
    name str
    The name of the Docker Container
    details bool
    discard_headers bool
    Discard headers that docker appends to each log entry
    follow bool
    logs_list_string_enabled bool
    If true populate computed value logs_list_string
    show_stderr bool
    show_stdout bool
    since str
    tail str
    timestamps bool
    until str
    id String
    The provider-assigned unique ID for this managed resource.
    logsListStrings List<String>
    List of container logs, each element is a line.
    name String
    The name of the Docker Container
    details Boolean
    discardHeaders Boolean
    Discard headers that docker appends to each log entry
    follow Boolean
    logsListStringEnabled Boolean
    If true populate computed value logs_list_string
    showStderr Boolean
    showStdout Boolean
    since String
    tail String
    timestamps Boolean
    until String

    Package Details

    Repository
    Docker pulumi/pulumi-docker
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the docker Terraform Provider.
    docker logo
    Docker v4.5.6 published on Tuesday, Sep 24, 2024 by Pulumi