# Pushing the data from Perfmon to elasticsearch

**URL:** <https://discuss.elastic.co/t/pushing-the-data-from-perfmon-to-elasticsearch/50685>\
**Category:** Logstash\
**Created:** [May 23, 2016, 9:40am UTC](https://discuss.elastic.co/t/pushing-the-data-from-perfmon-to-elasticsearch/50685 "2016-05-23T09:40:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prateek\_Kshtriya](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@Prateek\_Kshtriya](https://discuss.elastic.co/u/Prateek_Kshtriya)\
**Post date:** [May 23, 2016, 9:40am UTC](https://discuss.elastic.co/t/pushing-the-data-from-perfmon-to-elasticsearch/50685/1 "2016-05-23T09:40:12Z")

</div>

Hi All,

I need to post the perfmon data for visualization. Currently I am saving perfmon data collector data set as CSV and then sending it to elasticsearch for visualization.  
So every time when I restart perfmon data collector set it creates a new file with parent folder and it is required to change the file location in the logstash config file to read the same.

Please suggest me how to remove the dependency of changing the folder created by perfmon data collector set when new data is getting generated.

Please suggest if it is possible to pull data directly from perfmon or any change in logstash config file so that it becomes independent of file path.  
Snippet from my current logstash config file-  
input {  
file {  
path =\> "\PerfmonData\MACHINENAME\_000001\DataCollector01.csv"  
start\_position =\> "beginning"  
}  
}

Regards,  
Prateek Divya

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 23, 2016, 9:43am UTC](https://discuss.elastic.co/t/pushing-the-data-from-perfmon-to-elasticsearch/50685/2 "2016-05-23T09:43:08Z")

</div>

Just use wildcards in the path;  
`path => "\PerfmonData\MACHINENAME_000001\*.csv"` or  
`path => "\PerfmonData\*\*.csv"`

---

<div class="post-metadata">

**Author:** ![Prateek\_Kshtriya](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@Prateek\_Kshtriya](https://discuss.elastic.co/u/Prateek_Kshtriya)\
**Post date:** [May 23, 2016, 9:53am UTC](https://discuss.elastic.co/t/pushing-the-data-from-perfmon-to-elasticsearch/50685/3 "2016-05-23T09:53:20Z")

</div>

> [@warkolm](#):
>
> \*.csv

Tried same .It is not giving any error at logstash command line but the index is not getting generated whereas able to see Index when passing absolute path.

Regards,  
Prateek

---

<div class="post-metadata">

**Author:** ![Prateek\_Kshtriya](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@Prateek\_Kshtriya](https://discuss.elastic.co/u/Prateek_Kshtriya)\
**Post date:** [May 23, 2016, 10:14am UTC](https://discuss.elastic.co/t/pushing-the-data-from-perfmon-to-elasticsearch/50685/4 "2016-05-23T10:14:16Z")

</div>

thank you.  
Able to post the data.  
Referred below link also -

> <https://stackoverflow.com/questions/34658335/logstash-not-working-with-multiple-files-wildcard-path>

---

<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:** [July 6, 2017, 4:56am UTC](https://discuss.elastic.co/t/pushing-the-data-from-perfmon-to-elasticsearch/50685/5 "2017-07-06T04:56:39Z")

</div>

Closed on July 6, 2017, 4:56am UTC


