# Logstash CPU utilisation - Aure Bolb Plugin

**URL:** <https://discuss.elastic.co/t/logstash-cpu-utilisation-aure-bolb-plugin/161140>\
**Category:** Logstash\
**Created:** [December 17, 2018, 12:16pm UTC](https://discuss.elastic.co/t/logstash-cpu-utilisation-aure-bolb-plugin/161140 "2018-12-17T12:16:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![charan.gandra](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@charan.gandra](https://discuss.elastic.co/u/charan.gandra)\
**Post date:** [December 17, 2018, 12:16pm UTC](https://discuss.elastic.co/t/logstash-cpu-utilisation-aure-bolb-plugin/161140/1 "2018-12-17T12:16:49Z")

</div>

Hi,

I am using LS to read NSG flow logs form Azure using Azure blob plugin. My Azure VM is F8 Size i.e. 64GB RAM and 8 CPUs. However CPU utilization is always over 100%. My filter is exactly the same as provided in Azure documentation. Is there anything I can do to reduce the CPU utilization?

Here is my filter.

filter {  
split { field =\> "[records]" }  
split { field =\> "[records][properties][flows]"}  
split { field =\> "[records][properties][flows][flows]"}  
split { field =\> "[records][properties][flows][flows][flowTuples]"}

mutate{  
split =\> { "[records][resourceId]" =\> "/"}  
add\_field =\> {"Subscription" =\> "%{[records][resourceId][2]}"  
"ResourceGroup" =\> "%{[records][resourceId][4]}"  
"NetworkSecurityGroup" =\> "%{[records][resourceId][8]}"}  
convert =\> {"Subscription" =\> "string"}  
convert =\> {"ResourceGroup" =\> "string"}  
convert =\> {"NetworkSecurityGroup" =\> "string"}  
split =\> { "[records][properties][flows][flows][flowTuples]" =\> ","}  
add\_field =\> {  
"unixtimestamp" =\> "%{[records][properties][flows][flows][flowTuples][0]}"  
"srcIp" =\> "%{[records][properties][flows][flows][flowTuples][1]}"  
"destIp" =\> "%{[records][properties][flows][flows][flowTuples][2]}"  
"srcPort" =\> "%{[records][properties][flows][flows][flowTuples][3]}"  
"destPort" =\> "%{[records][properties][flows][flows][flowTuples][4]}"  
"protocol" =\> "%{[records][properties][flows][flows][flowTuples][5]}"  
"trafficflow" =\> "%{[records][properties][flows][flows][flowTuples][6]}"  
"traffic" =\> "%{[records][properties][flows][flows][flowTuples][7]}"  
}  
convert =\> {"unixtimestamp" =\> "integer"}  
convert =\> {"srcPort" =\> "integer"}  
convert =\> {"destPort" =\> "integer"}  
}

date{  
match =\> ["unixtimestamp" , "UNIX"]  
}  
}

Thanks,

---

<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:** [January 14, 2019, 12:16pm UTC](https://discuss.elastic.co/t/logstash-cpu-utilisation-aure-bolb-plugin/161140/2 "2019-01-14T12:16:52Z")

</div>

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