Get Search Results Count by Field

What's Loggly: Loggly is an online log management and analytics tool that lets you track the events of your system.

About ‘Get Search Results Count by Field' action: This action lets you retrieve the count of events associated with the specified field. 

Connect to Loggly: Select the appropriate connection for Loggly from the drop-down list. If you haven’t created a connection yet, select ‘Add New’ to create one. 

Field data

Field Name (Mandatory): Enter the field name by which you wish to retrieve the count of events. You can retrieve the field name(s) by using 'Search Events with Fields' action in a separate workflow. 

Search Date Type (Mandatory): Select the format of the date by which you wish to search the events. Available options are 'Absolute Date' and 'Relative Timeframe'. By default, the value for this field is set to 'Absolute Date'. 

   Absolute Date: This section accepts date and time in ISO format. 

      Start Date and Time (Optional): Enter the start date and time on which the event was created in ISO format. For example: '2016-11-21T09:59:58.910Z'. 

      End Date and Time (Optional): Enter the end date and time on which the event was created in ISO format. For example: '2016-11-21T09:59:58.910Z'.

   Relative Timeframe: Select the relative timeframe in which the event was created from the drop down list. 

Query (Optional): Enter the search query to retrieve a specific event. 

Size (Optional): Enter the number of events you wish to retrieve in a result.

Once you have entered the details, click on 'Done' and 'Run' the flow. This will retrieve the count of events associated with the specified field. 

Refer to API documentation for more information: https://www.loggly.com/docs/api-retrieving-data/

Output:
  • output-arrow loggly-128 Get Search Results Count by Field
    • left-triangle total_events number
    • left-triangle unique_field_count number
    • left-triangle fieldName string
    • left-triangle fieldData array
      • left-triangle count number
      • left-triangle term string