Help Center/ Log Tank Service/ Best Practices/ Log Jobs (Beta)/ Processing Log Data Using DSL Functions/ Scenario 5: Filling Default Values for Non-existent Log Fields Using the default Parameter
Updated on 2025-12-04 GMT+08:00

Scenario 5: Filling Default Values for Non-existent Log Fields Using the default Parameter

  • Raw log
    {
      "content": "this is a log"
    }
  • Processing rule
    e_if(e_not_has("type"), e_set("type", "log"))
  • Processing result
    {
    	"type": "log",
    	"content": "this is a log"
    }