Run Azure Application Insights (Log Analytics) queries .
- jq
- cURL
- On Windows, you may need to download https://curl.haxx.se/ca/cacert.pem as
curl-ca-bundle.crt
and put it somewhere available in yourPATH
- On Windows, you may need to download https://curl.haxx.se/ca/cacert.pem as
Use your preferred Vim plugin installation method. If you like vim-plug:
Add to your .vimrc
:
Plug 'christianrondeau/vim-azure-log-analytics'
And install it:
:PlugInstall
You also need to assign these variables in your .vimrc
:
let g:azureloganalytics_appid = ""
let g:azureloganalytics_apikey = ""
You can select between different formattings too:
let g:azureloganalytics_format = "text"
Supported formattings are:
* `json` (default): Array of objects
* `csv`: Comma-separated values
* `text`: Human readable output
- Open a buffer with a
kql
file type (e.g.:enew query.kql
) - Type a Azure Log Analytics query
- Press enter
Copyright (c) 2018 Christian Rondeau, under MIT license