Class ElasticsearchTextStructureClient

java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchTextStructureClient>
co.elastic.clients.elasticsearch.text_structure.ElasticsearchTextStructureClient
All Implemented Interfaces:
Closeable, AutoCloseable

public class ElasticsearchTextStructureClient extends ApiClient<ElasticsearchTransport,ElasticsearchTextStructureClient>
Client for the text_structure namespace.
  • Constructor Details

  • Method Details

    • withTransportOptions

      public ElasticsearchTextStructureClient withTransportOptions(@Nullable TransportOptions transportOptions)
      Description copied from class: ApiClient
      Creates a new client with some request options
      Specified by:
      withTransportOptions in class ApiClient<ElasticsearchTransport,ElasticsearchTextStructureClient>
    • findFieldStructure

      Find the structure of a text field. Find the structure of a text field in an Elasticsearch index.

      This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field.

      The response from the API contains:

      • Sample messages.
      • Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields.
      • Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text.
      • Appropriate mappings for an Elasticsearch index, which you could use to ingest the text.

      All this information can be calculated by the structure finder with no guidance. However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters.

      If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. It helps determine why the returned structure was chosen.

      Throws:
      IOException
      ElasticsearchException
      See Also:
    • findFieldStructure

      Find the structure of a text field. Find the structure of a text field in an Elasticsearch index.

      This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field.

      The response from the API contains:

      • Sample messages.
      • Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields.
      • Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text.
      • Appropriate mappings for an Elasticsearch index, which you could use to ingest the text.

      All this information can be calculated by the structure finder with no guidance. However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters.

      If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. It helps determine why the returned structure was chosen.

      Parameters:
      fn - a function that initializes a builder to create the FindFieldStructureRequest
      Throws:
      IOException
      ElasticsearchException
      See Also:
    • findMessageStructure

      Find the structure of text messages. Find the structure of a list of text messages. The messages must contain data that is suitable to be ingested into Elasticsearch.

      This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process.

      The response from the API contains:

      • Sample messages.
      • Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields.
      • Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. Appropriate mappings for an Elasticsearch index, which you could use to ingest the text.

      All this information can be calculated by the structure finder with no guidance. However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters.

      If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. It helps determine why the returned structure was chosen.

      Throws:
      IOException
      ElasticsearchException
      See Also:
    • findMessageStructure

      Find the structure of text messages. Find the structure of a list of text messages. The messages must contain data that is suitable to be ingested into Elasticsearch.

      This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process.

      The response from the API contains:

      • Sample messages.
      • Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields.
      • Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. Appropriate mappings for an Elasticsearch index, which you could use to ingest the text.

      All this information can be calculated by the structure finder with no guidance. However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters.

      If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. It helps determine why the returned structure was chosen.

      Parameters:
      fn - a function that initializes a builder to create the FindMessageStructureRequest
      Throws:
      IOException
      ElasticsearchException
      See Also:
    • testGrokPattern

      Test a Grok pattern. Test a Grok pattern on one or more lines of text. The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings.
      Throws:
      IOException
      ElasticsearchException
      See Also:
    • testGrokPattern

      Test a Grok pattern. Test a Grok pattern on one or more lines of text. The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings.
      Parameters:
      fn - a function that initializes a builder to create the TestGrokPatternRequest
      Throws:
      IOException
      ElasticsearchException
      See Also: