자동화된 설치 중 XPath 매개변수 설정
WinCollect V 7.2.8 이상에서는 독립형 WinCollect 에이전트 설치를 위해 명령행 설치 프로그램에 XPath 매개변수를 추가할 수 있습니다.
프로시저
- https://www.base64encode.org/ 또는 다른 인코딩 도구를 사용하여 XPath를 base64 인코딩으로 변환하십시오.예를 들어, Windows PowerShell 로그를 수집하는 데 필요한 다음 XPath를 사용하면:
base64 변환 결과:<QueryList> <Query Id="0" Path="Windows PowerShell"> <Select Path="Windows PowerShell">*</Select> </Query> </QueryList>PFF1ZXJ5TGlzdD4KPFF1ZXJ5IElkPSIwIiBQYXRoPSJXaW5kb3dzIFBvd2VyU2hlbGwiPgo8U2VsZWN0IFBhdGg9IldpbmRvd3MgUG93ZXJTaGVsbCI+KjwvU2VsZWN0Pgo8L1F1ZXJ5Pgo8L1F1ZXJ5TGlzdD4= - 명령행 설치 프로그램에 다음 코드를 추가하십시오.
c:\wincollect-7.2.8-91.exe /s /v"/qn STATUSSERVER=<valid IP address> LOG_SOURCE_AUTO_CREATION_ENABLED=True LOG_SOURCE_AUTO_CREATION_PARAMETERS=""Component1.AgentDevice=DeviceWindowsLog&Component1.Action=create& Component1.LogSourceName=%COMPUTERNAME%&Component1.LogSourceIdentifier=%COMPUTERNAME%& Component1.Dest.Name=QRadar&Component1.EventLogPollProtocol=MSEVEN6&Component1.Dest.Hostname=<valid IP address>& Component1.Dest.Port=514&Component1.Dest.Protocol=TCP&Component1.Log.Security=true&Component1.Log.System=true& Component1.Log.Application=true&Component1.Log.DNS+Server=false&Component1.Log.File+Replication+Service=false& Component1.Log.Directory+Service=false&Component1.RemoteMachinePollInterval=3000& Component1.MinLogsToProcessPerPass=1250&Component1.MaxLogsToProcessPerPass=2500& Component1.CustomQuery.Base64=<base64 Xpath>& Component1.EventRateTuningProfile=High+Event+Rate+Server"""주: 다음 항목을 유효한 IP 주소로 바꾸십시오.STATUSSERVER=<valid IP address> Component1.Dest.Hostname=<valid IP address>STATUSSERVER는 WinCollect 에이전트가 상태 메시지 (예: WinCollect 서비스 시작 또는 에이전트 오류 메시지) 를 보내는 위치입니다.Component1.Dest.Hostname은 에이전트가 이벤트 로그를 보내는 위치(예: QRadar EC 또는 콘솔)입니다.주: 다음 항목을 1단계에서작성한 base64 변환으로 바꾸십시오.Component1.CustomQuery.Base64=<base64 Xpath> - 수집하려는 구성요소 또는 이벤트 로그를 추가하거나 제거하십시오.