Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log Analytics Information from Reports Missing key components for Log Analysis #276

Closed
gcarrarom opened this issue May 31, 2017 · 1 comment

Comments

@gcarrarom
Copy link

I Enrolled the Automation Account DSC to the OMS portal through Set-AzureRmDiagnosticSetting;
Added the Windows and Linux Nodes;
Looks like that the JSON payload received from the report of the Linux Machines has way less information, resulting in lack of information on the OMS portal.
JSON payload from Windows VM:

`{"JobId":"","OperationType":"Consistency","NodeName":"WSERV16DSCDEMO","IpAddress":"","LCMVersion":"2.0","ReportFormatVersion":"2.0","StartTime":"2017-05-12T19:02:24.3160000-04:00","Errors":[],"StatusData":["{"IPV4Addresses":[""],"CurrentChecksum":"ADD2C0AEA41522D2EA2FD72A260679C8A630088487CB5D443E363B7000471A78","MACAddresses":[""],"Type":"Consistency","HostName":"WSERV16DSCDEMO","Locale":"en-US","StartDate":"2017-05-12T19:02:24.3160000-04:00","JobID":"{}","LCMVersion":"2.0","IPV6Addresses":[""]}"],"AdditionalData":[{"Key":"OSVersion","Value":"{"VersionString":"Microsoft Windows NT 10.0.14393.0","ServicePack":"","Platform":"Win32NT"}"},{"Key":"PSVersion","Value":"{"CLRVersion":"4.0.30319.42000","PSVersion":"5.1.14393.953","BuildVersion":"10.0.14393.953"}"}]}

{"JobId":"","OperationType":"Consistency","RefreshMode":"Pull","Status":"Success","ReportFormatVersion":"2.0","ConfigurationVersion":"2.0.0","StartTime":"2017-05-12T19:02:24.3160000-04:00","EndTime":"2017-05-12T19:02:24.3160000-04:00","RebootRequested":"False","Errors":[],"StatusData":["{"StartDate":"2017-05-12T19:02:24.3160000-04:00","IPV6Addresses":[""],"DurationInSeconds":"0","JobID":"{}","CurrentChecksum":"ADD2C0AEA41522D2EA2FD72A260679C8A630088487CB5D443E363B7000471A78","MetaData":"Author: Administrator; Name: GMautomationPOC; Version: 2.0.0; GenerationDate: 05/11/2017 20:02:11; GenerationHost: CLIENT;","RebootRequested":"False","Status":"Success","IPV4Addresses":["IPV4 ADDRESSES"],"LCMVersion":"2.0","NumberOfResources":"1","Type":"Consistency","HostName":"WSERV16DSCDEMO","ResourcesInDesiredState":[{"SourceInfo":"::35::9::File","ModuleName":"PSDesiredStateConfiguration","DurationInSeconds":"0.016","InstanceName":"SuperTestFile","StartDate":"2017-05-12T19:02:24.6440000-04:00","ResourceName":"File","ModuleVersion":"1.1","RebootRequested":"False","ResourceId":"[File]SuperTestFile","ConfigurationName":"GMautomationPOC","InDesiredState":"True"}],"MACAddresses":[""],"MetaConfiguration":{"AgentId":"","SignatureValidations":[],"ConfigurationDownloadManagers":[{"RegistrationKey":"","ServerURL":"","ResourceId":"[ConfigurationRepositoryWeb]AzureAutomationDSC","ConfigurationNames":["GMautomationPOC.webServer"],"SourceInfo":"C:\Packages\Plugins\Microsoft.Powershell.DSC\2.19.0.0\DSCWork\RegistrationMetaConfigV2.0\RegistrationMetaConfigV2.ps1::69::9::ConfigurationRepositoryWeb"}],"ActionAfterReboot":"ContinueConfiguration","LCMCompatibleVersions":["1.0","2.0"],"LCMState":"Idle","ResourceModuleManagers":[{"RegistrationKey":"","ServerURL":"","ResourceId":"[ResourceRepositoryWeb]AzureAutomationDSC","SourceInfo":"C:\Packages\Plugins\Microsoft.Powershell.DSC\2.19.0.0\DSCWork\RegistrationMetaConfigV2.0\RegistrationMetaConfigV2.ps1::76::9::ResourceRepositoryWeb"}],"ReportManagers":[{"RegistrationKey":"","ServerURL":"","ResourceId":"[ReportServerWeb]AzureAutomationDSC","SourceInfo":"C:\Packages\Plugins\Microsoft.Powershell.DSC\2.19.0.0\DSCWork\RegistrationMetaConfigV2.0\RegistrationMetaConfigV2.ps1::82::9::ReportServerWeb"}],"StatusRetentionTimeInDays":"10","LCMVersion":"2.0","MaximumDownloadSizeMB":"500","ConfigurationMode":"ApplyAndMonitor","RefreshFrequencyMins":"30","RebootNodeIfNeeded":"False","SignatureValidationPolicy":"NONE","RefreshMode":"Pull","DebugMode":["NONE"],"CertificateID":"","AllowModuleOverwrite":"False","ConfigurationModeFrequencyMins":"15","LCMStateDetail":""},"Locale":"en-US","Mode":"Pull"}"],"AdditionalData":[{"Key":"OSVersion","Value":"{"VersionString":"Microsoft Windows NT 10.0.14393.0","ServicePack":"","Platform":"Win32NT"}"},{"Key":"PSVersion","Value":"{"CLRVersion":"4.0.30319.42000","PSVersion":"5.1.14393.953","BuildVersion":"10.0.14393.953"}"}]}`

JSON payload from Linux VM:

{"JobId":"","OperationType":"Consistency","NodeName":"tsLinuxdsc","IpAddress":"","ReportFormatVersion":"2.0","LCMVersion":"2.0","StartTime":"2017-05-30T23:00:01.303623551+00:00","Errors":[],"StatusData":["{"Locale":"en-US"}"]} {"JobId":"","ConfigurationVersion":"2.0.0","ReportFormatVersion":"2.0","LCMVersion":"2.0","EndTime":"2017-05-30T23:00:02.069403144+00:00","Errors":["{"Locale":"en-US","ErrorCode":"1","ErrorMessage":"Completed processing test operation. The operation returned False.","ResourceId":"DSCEngine","ErrorSource":"DSCEngine"}"],"StatusData":["{"Locale":"en-US","ResourcesNotInDesiredState":[{"SourceInfo":"(null)","ModuleName":"(null)","DurationInSeconds":"0","InstanceName":"[nxFile]getWildFly","StartDate":"2017-05-30T23:00:02.069403144+00:00","ResourceName":"MSFT_nxFileResource","ModuleVersion":"(null)","RebootRequested":"False","ResourceId":"[nxFile]getWildFly","ConfigurationName":"","InDesiredState":"False"}],"Error":"Completed processing test operation. The operation returned False."}"]}

The information that we get from the Linux VM is very limited, therefore there's not enough information from the Linux Based nodes to analyze from the OMS portal.
The Linux Box that I Shared the payload is a CentOS 6.9 box registered with the following script:

`dscKey=$1
dscUrl=$2
ConfigName=$3

#download packages
wget https://github.com/Microsoft/omi/releases/download/v1.2.0-35/omi-1.2.0-35.ssl_100.x64.rpm
wget https://github.com/Microsoft/PowerShell-DSC-for-Linux/releases/download/v1.1.1-294/dsc-1.1.1-294.ssl_100.x64.rpm

#install Packages
sudo rpm -Uvh omi-1.2.0-35.ssl_100.x64.rpm
sudo rpm -Uvh dsc-1.1.1-294.ssl_100.x64.rpm

#OnboardVM
cd /opt/microsoft/dsc/Scripts/
sudo ./Register.py --RegistrationKey $dscKey --ServerURL $dscUrl --ConfigurationName $ConfigName`

@gcarrarom
Copy link
Author

Abandoned this a while ago. Closing as stale.

@gcarrarom gcarrarom closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant