Skip to content

An implementation of Log Analytics post/query using Java

Notifications You must be signed in to change notification settings

plasne/oms-query-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

oms-query-java

An implementation of Log Analytics post/query using Java.

Build

mvn clean dependency:copy-dependencies package

Run

To post:

java -cp target/oms-query-1.0-SNAPSHOT.jar:target/dependency/* com.plasne.App post

To query:

java -cp target/oms-query-1.0-SNAPSHOT.jar:target/dependency/* com.plasne.App query

RFC-1123

There was an interesting problem and I just wanted to document it somewhere. While the timestamp format for the POST method is documented as RFC-1123, it turns out the Log Analytics service doesn't actually adhere to that specification, which allows for the "day" (among other things) to be 1 or 2 digits. The service will throw an error if it isn't 2 digits. Rather than formatting to RFC-1123, I had to format to:

EEE, dd MMM yyyy HH:mm:ss O

About

An implementation of Log Analytics post/query using Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages