Hi, i have new case. All my windows server are using bitvise for remote dessktop.
(when i used bitvise for remote dessktop in windows, event_id 4624 contain username logon, but not contain real IP login. It alway 127.0.0.1)
Log login bitvise write into event log with event_id=4097.
Now i want parse this log of event id 4097.
Can someone help me?
P/s: This is my flow log
Winlogbeat -> Logstash -> ES
Here is log from winlogbeat
{
"_index": "wb-server-2017.39",
"_type": "wineventlog",
"_id": "AV64MpbsuBaoJ_JnxAi4",
"_version": 1,
"_score": null,
"_source": {
"computer_name": "Server1.HO.FPT.VN",
"keywords": [
"Classic"
],
"log_name": "Application",
"level": "Information",
"beatname": "wb-server",
"record_number": "18049021",
"event_data": {
"param1": "event\n time: 2017-09-25 15:41:25.615035 +0700\n app: BvSshServer 7.14\n name: I_CHANNEL_C2S_CLTSIDE_FORWARDING_ENDED\n desc: Client-configured client-to-server port forwarding ended.\n session\n id: 1033\n service: SSH\n remoteAddress: 10.11.0.45:64798\n windowsAccount: HO.FPT.VN\\admin1\n channel\n type: direct-tcpip\n originAddress: 127.0.0.1:64804\n requestAddress: 127.0.0.1:3389\n targetAddress: 127.0.0.1:3389"
},
"message": "event\n time: 2017-09-25 15:41:25.615035 +0700\n app: BvSshServer 7.14\n name: I_CHANNEL_C2S_CLTSIDE_FORWARDING_ENDED\n desc: Client-configured client-to-server port forwarding ended.\n session\n id: 1033\n service: SSH\n remoteAddress: 10.11.0.45:64798\n windowsAccount: HO.FPT.VN\\admin1\n channel\n type: direct-tcpip\n originAddress: 127.0.0.1:64804\n requestAddress: 127.0.0.1:3389\n targetAddress: 127.0.0.1:3389",
"opcode": "Info",
"type": "wineventlog",
"tags": [],
"@timestamp": "2017-09-25T08:41:25.000Z",
"event_id": 4097,
"beattype": "wineventlog",
"@version": "1",
"beat": {
"name": "Server-REMOTE",
"hostname": "Server-REMOTE",
"version": "5.4.0"
},
"host": "Server-REMOTE",
"source_name": "BvSshServer",
"event_data.machine": "false"
},
"fields": {
"@timestamp": [
1506328885000
]
},
"sort": [
1506328885000,
92471
]
}
Log need filter
"event_data": {
"param1": "event\n time: 2017-09-25 15:41:25.615035 +0700\n app: BvSshServer 7.14\n name: I_CHANNEL_C2S_CLTSIDE_FORWARDING_ENDED\n desc: Client-configured client-to-server port forwarding ended.\n session\n id: 1033\n service: SSH\n remoteAddress: 10.11.0.45:64798\n windowsAccount: HO.FPT.VN\\admin1\n channel\n type: direct-tcpip\n originAddress: 127.0.0.1:64804\n requestAddress: 127.0.0.1:3389\n targetAddress: 127.0.0.1:3389"
},