All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elasticsearch.index.audit.ftl Maven / Gradle / Ivy

There is a newer version: 4.6.0-alpha.2
Show newest version
<@compress single_line=true>
{
  "_type": "audit",
  "@timestamp":"${@timestamp}",
  "date" : "${date}",
  "event_id" : "${audit.getId()}",
  "event_type":"${audit.getType()}",
  "organizationId":"${audit.getOrganizationId()}",
  "environmentId":"${audit.getEnvironmentId()}",
  "transactionId":"${audit.getTransactionId()}",
  <#if audit.getNodeId()??>
    "nodeId":"${audit.getNodeId()?j_string}",
  
  <#if audit.getNodeHostname()??>
    "nodeHostname":"${audit.getNodeHostname()?j_string}",
  
  <#if audit.getReferenceType()??>
    "referenceType":"${audit.getReferenceType()?j_string}",
  
  "referenceId":"${audit.getReferenceId()}",
  "status":"${audit.getStatus()}"
  <#if audit.getAccessPoint()??>
    ,"accessPoint": {
      "id":  <#if audit.getAccessPoint().getId()??> "${audit.getAccessPoint().getId()}" <#else> null 
      <#if audit.getAccessPoint().getAlternativeId()??>, "alternativeId":"${audit.getAccessPoint().getAlternativeId()}"
      <#if audit.getAccessPoint().getDisplayName()??>, "displayName":"${audit.getAccessPoint().getDisplayName()}"
      <#if audit.getAccessPoint().getIpAddress()??>, "ipAddress":"${audit.getAccessPoint().getIpAddress()}"
      <#if audit.getAccessPoint().getUserAgent()??>, "userAgent":"${audit.getAccessPoint().getUserAgent()}"
    }
  
  <#if audit.getActor()??>
    ,"actor": {
      "id":  <#if audit.getActor().getId()??> "${audit.getActor().getId()}" <#else> null 
      <#if audit.getActor().getAlternativeId()??>, "alternativeId":"${audit.getActor().getAlternativeId()}"
      <#if audit.getActor().getType()??>, "type":"${audit.getActor().getType()}"
      <#if audit.getActor().getDisplayName()??>, "displayName":"${audit.getActor().getDisplayName()}"
      <#if audit.getActor().getReferenceType()??>
        , "referenceType":"${audit.getActor().getReferenceType()?j_string}"
      
      <#if audit.getActor().getReferenceId()??>, "referenceId":"${audit.getActor().getReferenceId()}"
    }
  
  <#if audit.getTarget()??>
    ,"target": {
      "id":  <#if audit.getTarget().getId()??> "${audit.getTarget().getId()}" <#else> null 
      <#if audit.getTarget().getAlternativeId()??>, "alternativeId":"${audit.getTarget().getAlternativeId()}"
      <#if audit.getTarget().getType()??>, "type":"${audit.getTarget().getType()}"
      <#if audit.getTarget().getDisplayName()??>, "displayName":"${audit.getTarget().getDisplayName()}"
      <#if audit.getTarget().getReferenceType()??>
        , "referenceType":"${audit.getTarget().getReferenceType()?j_string}"
      
      <#if audit.getTarget().getReferenceId()??>, "referenceId":"${audit.getTarget().getReferenceId()}"
    }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy