Get list of message fields

What is the best way to get list of message fields that exist from a plugin in java?

If you’re interested in the fields of a single message instance, you’d use Message#getFields() or Message#getFieldsEntries():

If you’re interested in the fields of all messages in Elasticsearch matching a certain search query, you’d use Indices#getAllMessageFieldsForIndices() or Indices#getAllMessageFields():

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.