2017-10-19 70 views

回答

1

上配置的PingFederate的log4j2.xml一些額外的信息,請訪問:https://documentation.pingidentity.com/pingfederate/pf84/index.shtml#adminGuide/concept/writingAuditLogsForSplunk.html

如果你沒有在你的log4j2.xml定義的SecurityAudit2Splunk附加器,它應該是這個樣子:

<RollingFile name="SecurityAudit2Splunk" fileName="${sys:pf.log.dir}/splunk-audit.log" 
     filePattern="${sys:pf.log.dir}/splunk-audit.%d{yyyy-MM-dd}.log" 
     ignoreExceptions="false"> 
     <PatternLayout> 
      <pattern>%d trackingid=&quot;%X{trackingid}&quot; event=%X{event} subject=&quot;%X{subject}&quot; ip=%X{ip} app=%X{app} connectionid=%X{connectionid} protocol=%X{protocol} pfhost=%X{host} role=%X{role} status=%X{status} adapterid=%X{adapterid} description=&quot;%X{description}&quot; responsetime=%X{responsetime} %n</pattern> 
     </PatternLayout> 
     <Policies> 
      <TimeBasedTriggeringPolicy /> 
     </Policies> 
    </RollingFile> 

如果你想看到一個原始的log4j2.xml配置文件,你總是可以再次下載PingFederate進行比較:https://www.pingidentity.com/en/resources/downloads/pingfederate.html

+0

非常好,正是我所期待的!感謝(快速)回覆! –

+0

後續張貼在這裏 - 以防您也可以提供幫助;) https://stackoverflow.com/questions/47203369/logging-from-ping-federate –

相關問題