Business Automation Insights (BAI)

 View Only

JSLT expression to set the opensearch index name

  • 1.  JSLT expression to set the opensearch index name

    Posted Wed October 23, 2024 03:03 PM

    Hi, I'm trying to process and transform ODM events with a custom processor. 

    The result should be indexed in different opensearch indexes depending on ODM event content.

    ¿Can be used JSLT expression to set the name of the index?

    ¿Is it possible a configuration like this? 

    "egresses": [
       {
          "uid": "E0001",
          "type": "opensearch",
          "name": "opensearch-index",
          "index": {
             "name": {
                "type": "jslt-inline",      
                "expression": ".source.id" 
             },
    	  "docId": ".id"
          }
       }
    ] 
    



    ------------------------------
    Eduardo Izquierdo Lázaro
    Automation Architect
    DECIDE
    Madrid
    609893677
    ------------------------------