현재 오류 로그의 전체 내용을 사용자에게 전자 메일로 보낼 VBSCRIPT가 있습니다. 그러나이를 수정하도록 수정하려고합니다. "로드 된 데이터가 있습니다."라는 메시지가 나타나면 Error.log를 이메일로 보내려면 그렇지 않으면 로그를 첨부하지 말고 "로드가 성공했습니다"라는 메시지를 보내십시오. 도움이 될 것입니다. 지금까지하는 error.logVBSCRIPT : 파일에서 텍스트 찾기 및 텍스트가있는 경우 전자 메일 로그
2017-04-24 15:35:13,429 DEBUG [AIF]: CommData.updateWorkflow - END
2017-04-24 15:35:13,429 DEBUG [AIF]: AIFUtil.callOdiServlet - START
2017-04-24 15:35:13,451 INFO [AIF]: EssbaseService.loadData - START
2017-04-24 15:35:13,507 DEBUG [AIF]: appId:3, appType:ESSBASE, mcFlag:false, dataLoadMethod:CLASSIC_VIA_EPMI, mDataFlowNode:LOCAL, textDataLoad:N, isFccsLoad:false, isJournalLoad:false
2017-04-24 15:35:13,508 DEBUG [AIF]: LOAD_METHOD:ESSFILE, LOAD_TYPE:DATA, EXPORT_MODE:STORE_DATA, CREATE_DRILL_REGION:false, PURGE_DATA_FILE:true, BATCH_SIZE:10000
2017-04-24 15:35:13,629 INFO [AIF]: cloudServiceType: Planning, Resolved user name for application access: epm_default_cloud_admin
2017-04-24 15:35:14,816 DEBUG [AIF]: Obtained connection to essbase cube: Finance
2017-04-24 15:35:14,818 DEBUG [AIF]: Resolved essbase rule file name for loading: AIF0069
2017-04-24 15:35:14,819 DEBUG [AIF]: Fetching rule file from essbase server for data loading: AIF0069
2017-04-24 15:35:14,824 INFO [AIF]: Starting executeDataRuleFile...
2017-04-24 15:35:14,826 DEBUG [AIF]: Locked rule file: AIF0069
2017-04-24 15:35:14,827 INFO [AIF]: Getting load buffer for ASO data load...
2017-04-24 15:35:14,828 INFO [AIF]: Initializing load buffer [1]
2017-04-24 15:35:14,828 INFO [AIF]: Successfully initialized the load buffer
2017-04-24 15:35:14,828 INFO [AIF]: Loading data into cube using data file...
2017-04-24 15:35:14,844 INFO [AIF]: purge data file: /u03/inbox/outbox/AQCONSOL_930.dat
2017-04-24 15:35:14,845 INFO [AIF]: The load buffer [1] has been closed.
2017-04-24 15:35:14,845 INFO [AIF]: **Load data encountered** the following errors:
| Error: 3303 | A99999 | "A99999","01","Functional","L000","Default Version","C10010","P0000","J00000","FY16","G00","Actual","[YearTotal].[Q1].[Jan]",100 |
2017-04-24 15:35:14,845 INFO [AIF]: Load data failed.
2017-04-24 15:35:14,846 DEBUG [AIF]: Unlocked rule file: AIF0069
2017-04-24 15:35:14,846 ERROR [AIF]: Load data failed.
2017-04-24 15:35:14,853 INFO [AIF]: EssbaseService.loadData - END (false)
2017-04-24 15:35:14,871 DEBUG [AIF]: AIFUtil.callOdiServlet - END
2017-04-24 15:35:14,871 FATAL [AIF]: Error in CommData.loadData
Traceback (most recent call last):
File "<string>", line 4769, in loadData
RuntimeError: false
스크립트의
내용 :
fileEmail = "C:\Error.log"
intCount = 0
Set objStream = objFSO.OpenTextFile(fileEmail)
Do Until objStream.AtEndOfStream
sline = objStream.Readline
If intCount = 0 Then
objMessage.Subject = sline
Else
strMessage = strMessage & sline & vbcrlf
End If
intCount = intCount + 1
Loop
Const cdoAnonymous = 0 'Do not authenticate
Const cdoBasic = 1 'basic (clear-text) authentication
Const cdoNTLM = 2 'NTLM
strMessage = strMessage & vbcrlf
objMessage.From = "[email protected]"
objMessage.To = "[email protected]"
objMessage.TextBody = strMessage
objMessage.Configuration.Fields.Item _
("Microsoft URL") = 2
'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("Microsoft URL") = "smtp.secureserver.net"
'Type of authentication, NONE, Basic (Base64 encoded), NTLM
objMessage.Configuration.Fields.Item _
("Microsoft URL") = cdoBasic
'Your UserID on the SMTP server
objMessage.Configuration.Fields.Item _
("Microsoft URL") = ""
'Your password on the SMTP server
objMessage.Configuration.Fields.Item _
("Microsoft URL") = ""
'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("Microsoft URL") = 465
'Use SSL for the connection (False or True)
objMessage.Configuration.Fields.Item _
("Microsoft URL") = True
'Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)
objMessage.Configuration.Fields.Item _
("Microsoft URL") = 60
objMessage.Configuration.Fields.Update
objMessage.Send
Set objStream = Nothing
'Delete File when finished
objFSO.DeleteFile fileprocesslog, True
정확히 어떤 문제가 있습니까? –
오류 로그에서 "데이터가로드되었습니다"라는 단어를 검색하는 로직을 얻으려는 시도가있는 경우이를 로그에 첨부하여 다른 사람에게 보냅니다. 존재하지 않으면 첨부 파일없이 이메일을 보내십시오. – user7571572