HI I have an issue that about MS_EXCHANGE IIS LOG:
This is the all the field:
#Fields:
date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username
c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status
time-taken
Here is my log:
2018-09-16 00:00:09 xxx.xxx.31.24
POST /Microsoft-Server-ActiveSync/default.eas
User=tientx&DeviceId=QKRK5NV3DP41HCERF06TESUB3S&DeviceType=iPhone&Cmd=Ping&CorrelationID=<empty>;&ClientId=G9QB9TOUIPLTQKJMZYG&cafeReqId=eda96f2b-85fd-4157-b518-0c41d1a6d39c;
443 domainname\tientx xxx.xxx.39.89 Apple-iPhone8C1/1501.402 - 200 0 0 580557
My iis log decode now is:
<decoder name="web-accesslog-iis-default">
<parent>windows-date-format</parent>
<type>web-log</type>
<use_own_name>true</use_own_name>
<prematch offset="after_parent">^\S+ GET |^\S+ POST</prematch>
<regex offset="after_parent">^\S+ (\w+) (\S+ \S+) (\S+) \S+ (\S+) (\S+) \.*(\d\d\d) </regex>
<order>action, url, srcport, srcip, user_agent, id</order>
</decoder>
and the Result for the log decoded above:
**Phase 2: Completed decoding.
decoder: 'windows-date-format'
action: 'POST'
url: '/Microsoft-Server-ActiveSync/default.eas
User=thangdn&DeviceId=I51HJHEMND20F9QFEPSU7LT5F8&DeviceType=iPhone&Cmd=Ping&CorrelationID=<empty>;&ClientId=ZSMLJBRL0YTICIUBVOUG&cafeReqId=83f425f6-653b-405b-b9a0-c0e51f47e21a;'
srcport: '443'
srcip: 'xxx.xxx.57.151'
user_agent: 'Apple-iPhone10C5/1507.77'
id: '200'
===> I need to parse out the field IP xxx.xxx.31.24 and the User:
domainname\tientx but i failed many times.
2018-09-16 00:00:09 xxx.xxx.31.24 POST
/Microsoft-Server-ActiveSync/default.eas
User=tientx&DeviceId=QKRK5NV3DP41HCERF06TESUB3S&DeviceType=iPhone&Cmd=Ping&CorrelationID=<empty>;&ClientId=G9QB9TOUIPLTQKJMZYG&cafeReqId=eda96f2b-85fd-4157-b518-0c41d1a6d39c;
443 domainname\tientx xxx.xxx.39.89 Apple-iPhone8C1/1501.402 - 200 0 0 580557
Can you help me to check it
Thanks and Best Regards