Elastic Log Search 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_02.PNG


STEP-3

elastic_log_search_03.PNG


STEP-4

elastic_log_search_04.PNG