1. Packages
  2. Volcengine
  3. API Docs
  4. tls
  5. getLogSearches
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
volcengine logo
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine

    Use this data source to query detailed information of tls log searches

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.tls.getLogSearches({
        endTime: 1768450896000,
        limit: 10,
        query: "*",
        startTime: 1768448896000,
        topicId: "3c57a110-399a-43b3-bc3c-5d60e065239a",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.tls.get_log_searches(end_time=1768450896000,
        limit=10,
        query="*",
        start_time=1768448896000,
        topic_id="3c57a110-399a-43b3-bc3c-5d60e065239a")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tls.GetLogSearches(ctx, &tls.GetLogSearchesArgs{
    			EndTime:   1768450896000,
    			Limit:     pulumi.IntRef(10),
    			Query:     "*",
    			StartTime: 1768448896000,
    			TopicId:   "3c57a110-399a-43b3-bc3c-5d60e065239a",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Tls.GetLogSearches.Invoke(new()
        {
            EndTime = 1768450896000,
            Limit = 10,
            Query = "*",
            StartTime = 1768448896000,
            TopicId = "3c57a110-399a-43b3-bc3c-5d60e065239a",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.tls.TlsFunctions;
    import com.pulumi.volcengine.tls.inputs.GetLogSearchesArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var default = TlsFunctions.getLogSearches(GetLogSearchesArgs.builder()
                .endTime(1768450896000)
                .limit(10)
                .query("*")
                .startTime(1768448896000)
                .topicId("3c57a110-399a-43b3-bc3c-5d60e065239a")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:tls:getLogSearches
          Arguments:
            endTime: 1.768450896e+12
            limit: 10
            query: '*'
            startTime: 1.768448896e+12
            topicId: 3c57a110-399a-43b3-bc3c-5d60e065239a
    

    Using getLogSearches

    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 getLogSearches(args: GetLogSearchesArgs, opts?: InvokeOptions): Promise<GetLogSearchesResult>
    function getLogSearchesOutput(args: GetLogSearchesOutputArgs, opts?: InvokeOptions): Output<GetLogSearchesResult>
    def get_log_searches(accurate_query: Optional[bool] = None,
                         context: Optional[str] = None,
                         end_time: Optional[int] = None,
                         highlight: Optional[bool] = None,
                         limit: Optional[int] = None,
                         output_file: Optional[str] = None,
                         query: Optional[str] = None,
                         sort: Optional[str] = None,
                         start_time: Optional[int] = None,
                         topic_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetLogSearchesResult
    def get_log_searches_output(accurate_query: Optional[pulumi.Input[bool]] = None,
                         context: Optional[pulumi.Input[str]] = None,
                         end_time: Optional[pulumi.Input[int]] = None,
                         highlight: Optional[pulumi.Input[bool]] = None,
                         limit: Optional[pulumi.Input[int]] = None,
                         output_file: Optional[pulumi.Input[str]] = None,
                         query: Optional[pulumi.Input[str]] = None,
                         sort: Optional[pulumi.Input[str]] = None,
                         start_time: Optional[pulumi.Input[int]] = None,
                         topic_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetLogSearchesResult]
    func GetLogSearches(ctx *Context, args *GetLogSearchesArgs, opts ...InvokeOption) (*GetLogSearchesResult, error)
    func GetLogSearchesOutput(ctx *Context, args *GetLogSearchesOutputArgs, opts ...InvokeOption) GetLogSearchesResultOutput

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

    public static class GetLogSearches 
    {
        public static Task<GetLogSearchesResult> InvokeAsync(GetLogSearchesArgs args, InvokeOptions? opts = null)
        public static Output<GetLogSearchesResult> Invoke(GetLogSearchesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogSearchesResult> getLogSearches(GetLogSearchesArgs args, InvokeOptions options)
    public static Output<GetLogSearchesResult> getLogSearches(GetLogSearchesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:tls/getLogSearches:getLogSearches
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EndTime int
    The end time of the log.
    Query string
    The query of the log.
    StartTime int
    The start time of the log.
    TopicId string
    The ID of the topic.
    AccurateQuery bool
    Whether to use accurate query.
    Context string
    The context of the log.
    Highlight bool
    Whether to highlight the log.
    Limit int
    The limit of the logs.
    OutputFile string
    File name where to save data source results.
    Sort string
    The sort of the log.
    EndTime int
    The end time of the log.
    Query string
    The query of the log.
    StartTime int
    The start time of the log.
    TopicId string
    The ID of the topic.
    AccurateQuery bool
    Whether to use accurate query.
    Context string
    The context of the log.
    Highlight bool
    Whether to highlight the log.
    Limit int
    The limit of the logs.
    OutputFile string
    File name where to save data source results.
    Sort string
    The sort of the log.
    endTime Integer
    The end time of the log.
    query String
    The query of the log.
    startTime Integer
    The start time of the log.
    topicId String
    The ID of the topic.
    accurateQuery Boolean
    Whether to use accurate query.
    context String
    The context of the log.
    highlight Boolean
    Whether to highlight the log.
    limit Integer
    The limit of the logs.
    outputFile String
    File name where to save data source results.
    sort String
    The sort of the log.
    endTime number
    The end time of the log.
    query string
    The query of the log.
    startTime number
    The start time of the log.
    topicId string
    The ID of the topic.
    accurateQuery boolean
    Whether to use accurate query.
    context string
    The context of the log.
    highlight boolean
    Whether to highlight the log.
    limit number
    The limit of the logs.
    outputFile string
    File name where to save data source results.
    sort string
    The sort of the log.
    end_time int
    The end time of the log.
    query str
    The query of the log.
    start_time int
    The start time of the log.
    topic_id str
    The ID of the topic.
    accurate_query bool
    Whether to use accurate query.
    context str
    The context of the log.
    highlight bool
    Whether to highlight the log.
    limit int
    The limit of the logs.
    output_file str
    File name where to save data source results.
    sort str
    The sort of the log.
    endTime Number
    The end time of the log.
    query String
    The query of the log.
    startTime Number
    The start time of the log.
    topicId String
    The ID of the topic.
    accurateQuery Boolean
    Whether to use accurate query.
    context String
    The context of the log.
    highlight Boolean
    Whether to highlight the log.
    limit Number
    The limit of the logs.
    outputFile String
    File name where to save data source results.
    sort String
    The sort of the log.

    getLogSearches Result

    The following output properties are available:

    EndTime int
    Id string
    The provider-assigned unique ID for this managed resource.
    Logs List<GetLogSearchesLog>
    The list of the logs.
    Query string
    StartTime int
    TopicId string
    TotalCount int
    The total count of the logs.
    AccurateQuery bool
    Context string
    The context of the log.
    Highlight bool
    The highlight of the query.
    Limit int
    The limit of the logs.
    OutputFile string
    Sort string
    EndTime int
    Id string
    The provider-assigned unique ID for this managed resource.
    Logs []GetLogSearchesLog
    The list of the logs.
    Query string
    StartTime int
    TopicId string
    TotalCount int
    The total count of the logs.
    AccurateQuery bool
    Context string
    The context of the log.
    Highlight bool
    The highlight of the query.
    Limit int
    The limit of the logs.
    OutputFile string
    Sort string
    endTime Integer
    id String
    The provider-assigned unique ID for this managed resource.
    logs List<GetLogSearchesLog>
    The list of the logs.
    query String
    startTime Integer
    topicId String
    totalCount Integer
    The total count of the logs.
    accurateQuery Boolean
    context String
    The context of the log.
    highlight Boolean
    The highlight of the query.
    limit Integer
    The limit of the logs.
    outputFile String
    sort String
    endTime number
    id string
    The provider-assigned unique ID for this managed resource.
    logs GetLogSearchesLog[]
    The list of the logs.
    query string
    startTime number
    topicId string
    totalCount number
    The total count of the logs.
    accurateQuery boolean
    context string
    The context of the log.
    highlight boolean
    The highlight of the query.
    limit number
    The limit of the logs.
    outputFile string
    sort string
    end_time int
    id str
    The provider-assigned unique ID for this managed resource.
    logs Sequence[GetLogSearchesLog]
    The list of the logs.
    query str
    start_time int
    topic_id str
    total_count int
    The total count of the logs.
    accurate_query bool
    context str
    The context of the log.
    highlight bool
    The highlight of the query.
    limit int
    The limit of the logs.
    output_file str
    sort str
    endTime Number
    id String
    The provider-assigned unique ID for this managed resource.
    logs List<Property Map>
    The list of the logs.
    query String
    startTime Number
    topicId String
    totalCount Number
    The total count of the logs.
    accurateQuery Boolean
    context String
    The context of the log.
    highlight Boolean
    The highlight of the query.
    limit Number
    The limit of the logs.
    outputFile String
    sort String

    Supporting Types

    GetLogSearchesLog

    Analysis bool
    Whether the result is analysis.
    AnalysisResult Dictionary<string, object>
    The analysis result of the query.
    Context string
    The context of the log.
    ElapsedMillisecond int
    The elapsed time of the query.
    Highlights List<GetLogSearchesLogHighlight>
    Whether to highlight the log.
    HitCount int
    The count of the logs.
    Limit int
    The limit of the logs.
    ListOver bool
    Whether the list is over.
    Logs List<GetLogSearchesLogLog>
    The list of the logs.
    ResultStatus string
    The status of the query.
    Analysis bool
    Whether the result is analysis.
    AnalysisResult map[string]interface{}
    The analysis result of the query.
    Context string
    The context of the log.
    ElapsedMillisecond int
    The elapsed time of the query.
    Highlights []GetLogSearchesLogHighlight
    Whether to highlight the log.
    HitCount int
    The count of the logs.
    Limit int
    The limit of the logs.
    ListOver bool
    Whether the list is over.
    Logs []GetLogSearchesLogLog
    The list of the logs.
    ResultStatus string
    The status of the query.
    analysis Boolean
    Whether the result is analysis.
    analysisResult Map<String,Object>
    The analysis result of the query.
    context String
    The context of the log.
    elapsedMillisecond Integer
    The elapsed time of the query.
    highlights List<GetLogSearchesLogHighlight>
    Whether to highlight the log.
    hitCount Integer
    The count of the logs.
    limit Integer
    The limit of the logs.
    listOver Boolean
    Whether the list is over.
    logs List<GetLogSearchesLogLog>
    The list of the logs.
    resultStatus String
    The status of the query.
    analysis boolean
    Whether the result is analysis.
    analysisResult {[key: string]: any}
    The analysis result of the query.
    context string
    The context of the log.
    elapsedMillisecond number
    The elapsed time of the query.
    highlights GetLogSearchesLogHighlight[]
    Whether to highlight the log.
    hitCount number
    The count of the logs.
    limit number
    The limit of the logs.
    listOver boolean
    Whether the list is over.
    logs GetLogSearchesLogLog[]
    The list of the logs.
    resultStatus string
    The status of the query.
    analysis bool
    Whether the result is analysis.
    analysis_result Mapping[str, Any]
    The analysis result of the query.
    context str
    The context of the log.
    elapsed_millisecond int
    The elapsed time of the query.
    highlights Sequence[GetLogSearchesLogHighlight]
    Whether to highlight the log.
    hit_count int
    The count of the logs.
    limit int
    The limit of the logs.
    list_over bool
    Whether the list is over.
    logs Sequence[GetLogSearchesLogLog]
    The list of the logs.
    result_status str
    The status of the query.
    analysis Boolean
    Whether the result is analysis.
    analysisResult Map<Any>
    The analysis result of the query.
    context String
    The context of the log.
    elapsedMillisecond Number
    The elapsed time of the query.
    highlights List<Property Map>
    Whether to highlight the log.
    hitCount Number
    The count of the logs.
    limit Number
    The limit of the logs.
    listOver Boolean
    Whether the list is over.
    logs List<Property Map>
    The list of the logs.
    resultStatus String
    The status of the query.

    GetLogSearchesLogHighlight

    Key string
    The key of the highlight.
    Values List<string>
    The value of the highlight.
    Key string
    The key of the highlight.
    Values []string
    The value of the highlight.
    key String
    The key of the highlight.
    values List<String>
    The value of the highlight.
    key string
    The key of the highlight.
    values string[]
    The value of the highlight.
    key str
    The key of the highlight.
    values Sequence[str]
    The value of the highlight.
    key String
    The key of the highlight.
    values List<String>
    The value of the highlight.

    GetLogSearchesLogLog

    Content Dictionary<string, object>
    The content of the log.
    Filename string
    The filename of the log.
    LogId string
    The ID of the log.
    Source string
    The source of the log.
    Timestamp int
    The timestamp of the log.
    Content map[string]interface{}
    The content of the log.
    Filename string
    The filename of the log.
    LogId string
    The ID of the log.
    Source string
    The source of the log.
    Timestamp int
    The timestamp of the log.
    content Map<String,Object>
    The content of the log.
    filename String
    The filename of the log.
    logId String
    The ID of the log.
    source String
    The source of the log.
    timestamp Integer
    The timestamp of the log.
    content {[key: string]: any}
    The content of the log.
    filename string
    The filename of the log.
    logId string
    The ID of the log.
    source string
    The source of the log.
    timestamp number
    The timestamp of the log.
    content Mapping[str, Any]
    The content of the log.
    filename str
    The filename of the log.
    log_id str
    The ID of the log.
    source str
    The source of the log.
    timestamp int
    The timestamp of the log.
    content Map<Any>
    The content of the log.
    filename String
    The filename of the log.
    logId String
    The ID of the log.
    source String
    The source of the log.
    timestamp Number
    The timestamp of the log.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate