Elastic Log Search Form Macro

STEP-1

Go to Space Tools > Add-ons > Elastic Log

Add Elastic Log configuration

elastic_log_search_01.PNG

Create query with input {0} to insert search text from macro.

{
  "query": {
    "multi_match": {
      "query": "{0}",
      "fields": [
        "field_1",
        "field_2"
      ],
      "operator": "or"
    }
  },
  "size": 100,
  "sort" : {
    "date": { "order": "desc" }
  }
}
{
  "query": {
    "match": {
      "_all": "{0}"
    }
  },
  "size": 100,
  "sort" : {
    "date": { "order": "desc" }
  }
}


STEP-2

elastic_log_search_form_01.PNG


STEP-3

elastic_log_search_form_02.PNG


STEP-4

elastic_log_search_form_03.PNG