For a long time, I have been worrying about this question.
I think it is not an usual, actually very unusual case.
---------------------------------
I hope to save a log data to my desktop from CloudWatch of AWS in real time
To get it, the site needs to login.
I did try to login using COM & IE but I couldn't.
Code: Select all
wb.document.getElementById("account").value := "1234567890"
wb.document.getElementById("username").value := "myname"
wb.document.getElementById("password").value := "mypassword"
Sleep, 2000
wb.document.getElementById("signin_button").click()
I didn't know why.
Do you have any idea to save the log data from cloudwatch every 5 minutes?
----------------------
Closing a login browser, the run it, the login status was still available,
so I tried to get the data using UrlDownloadToFile or WinHttp, but it was not working.
Code: Select all
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("GET", "https://ap-northeast-2.console.aws.amazon.com/cloudwatch/home?region=ap-northeast-2#logEventViewer:group=/var/log/company/www/access.log;stream=www;filter=goole.com;start=PT1H", true)
whr.Send()
whr.WaitForResponse()
result := whr.ResponseText
MsgBox % result
FileAppend, %result%, result.html
Thank you as always.