# How to get systemId field value using logstash-input-azure\_blob\_storage plugin?

**URL:** <https://discuss.elastic.co/t/how-to-get-systemid-field-value-using-logstash-input-azure-blob-storage-plugin/222573>\
**Category:** Logstash\
**Created:** [March 7, 2020, 7:08pm UTC](https://discuss.elastic.co/t/how-to-get-systemid-field-value-using-logstash-input-azure-blob-storage-plugin/222573 "2020-03-07T19:08:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ls09](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@ls09](https://discuss.elastic.co/u/ls09)\
**Post date:** [March 7, 2020, 7:08pm UTC](https://discuss.elastic.co/t/how-to-get-systemid-field-value-using-logstash-input-azure-blob-storage-plugin/222573/1 "2020-03-07T19:08:13Z")

</div>

How to get systemId field value using logstash-input-azure\_blob\_storage? please HELP!

> **[janmg/logstash-input-azure\_blob\_storage](https://github.com/janmg/logstash-input-azure_blob_storage)**
>
> This is a plugin for Logstash to fetch files from Azure Storage Accounts - janmg/logstash-input-azure\_blob\_storage

The Azure NSG log format is described here:

> **[Introduction to flow logging for NSGs - Azure Network Watcher](https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-nsg-flow-logging-overview)**
>
> This article explains how to use the NSG flow logs feature of Azure Network Watcher.

my logstash.conf file contents:

input {  
azure\_blob\_storage  
{  
storageaccount =\> "tfintegration"  
access\_key =\> "correct access\_key"  
container =\> "insights-logs-networksecuritygroupflowevent"  
codec =\> "json"  
logtype =\> "nsgflowlog"  
prefix =\> "resourceId=/"  
registry\_create\_policy =\> "resume"  
interval =\> 10  
}  
}

output {  
file {  
path =\> "/tmp/s21"  
}  
}

sample record in /tmp/s21 (it does not have systemId):

{"@timestamp":"2020-03-07T14:31:05.563Z","@version":"1","message":"{"subscription":"3AA9C5F1-91B2-4438-960A-16FB1B3B43F3","resourcegroup":"DEFAULTRESOURCEGROUP-EUS","nsg":"TFINTEGRATIONVM1-NSG","rule":"DefaultRule\_DenyAllInBound","unixtimestamp":"1583591307","src\_ip":"185.176.27.98","dst\_ip":"10.1.0.4","src\_port":"43018","dst\_port":"11291","protocol":"T","direction":"I","decision":"D","flowstate":"B","src\_pack":null,"src\_bytes":null,"dst\_pack":null,"dst\_bytes":null}"}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 4, 2020, 7:08pm UTC](https://discuss.elastic.co/t/how-to-get-systemid-field-value-using-logstash-input-azure-blob-storage-plugin/222573/2 "2020-04-04T19:08:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
