# Issue with free\_disk\_space example

**URL:** <https://discuss.elastic.co/t/issue-with-free-disk-space-example/159795>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [December 6, 2018, 7:43pm UTC](https://discuss.elastic.co/t/issue-with-free-disk-space-example/159795 "2018-12-06T19:43:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![songxuelian](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@songxuelian](https://discuss.elastic.co/u/songxuelian)\
**Post date:** [December 6, 2018, 7:43pm UTC](https://discuss.elastic.co/t/issue-with-free-disk-space-example/159795/1 "2018-12-06T19:43:12Z")

</div>

Hello there,

I am trying to apply the free disk space example in my my own system: (elasticsearch 6.0.1 trial version) [https://github.com/elastic/examples/tree/master/Alerting/Sample%20Watches/monitoring\_free\_disk\_space](https://github.com/elastic/examples/tree/master/Alerting/Sample%20Watches/monitoring_free_disk_space)

I post condition and transform as following by putting the example content in:  
POST \_scripts/condition  
{}  
POST \_scripts/transform  
{}

The watcher is created as following (Content copied from the example except indices are changed to my own):  
PUT \_xpack/watcher/watch/freespace\_watch  
{  
}

However, I cannot POST the mapping part successful. got an error similar to following:  
"{  
"error": {  
"root\_cause": [  
{  
"type": "mapper\_parsing\_exception",  
"reason": "Root mapping definition has unsupported parameters: [mappings : {sxldoc={\_all={enabled=false}, date\_detection=false, properties={type={type=keyword}, cluster\_uuid={type=keyword}, node\_stats={properties={fs={properties={data={properties={spins={type=boolean}}}, io\_stats={properties={total={properties={operations={type=long}, read\_kilobytes={type=long}, read\_operations={type=long}, write\_kilobytes={type=long}, write\_operations={type=long}}}}}, total={properties={available\_in\_bytes={type=long}, free\_in\_bytes={type=long}, total\_in\_bytes={type=long}}}}}}}, source\_node={properties={name={type=keyword}}}, timestamp={type=date, format=date\_time}}}}]"  
}  
],  
"type": "mapper\_parsing\_exception",  
"reason": "Root mapping definition has unsupported parameters: [mappings : {sxldoc={\_all={enabled=false}, date\_detection=false, properties={type={type=keyword}, cluster\_uuid={type=keyword}, node\_stats={properties={fs={properties={data={properties={spins={type=boolean}}}, io\_stats={properties={total={properties={operations={type=long}, read\_kilobytes={type=long}, read\_operations={type=long}, write\_kilobytes={type=long}, write\_operations={type=long}}}}}, total={properties={available\_in\_bytes={type=long}, free\_in\_bytes={type=long}, total\_in\_bytes={type=long}}}}}}}, source\_node={properties={name={type=keyword}}}, timestamp={type=date, format=date\_time}}}}]"  
},  
"status": 400  
}"

I did read the README, but still cannot figure out how to make mapping work. It would be very helpful if you can show me the PUT/POST command used for the mapping.

Thank you!

Xuelian

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 7, 2018, 10:43am UTC](https://discuss.elastic.co/t/issue-with-free-disk-space-example/159795/2 "2018-12-07T10:43:49Z")

</div>

can you provide the **full and exact** command that led to this failure?

Thanks!

--Alex

---

<div class="post-metadata">

**Author:** ![songxuelian](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@songxuelian](https://discuss.elastic.co/u/songxuelian)\
**Post date:** [December 20, 2018, 9:59pm UTC](https://discuss.elastic.co/t/issue-with-free-disk-space-example/159795/3 "2018-12-20T21:59:58Z")

</div>

We used .monitoring-es\* and was able to monitor the disk usage without using the corresponding mapping.

Thank you!

---

<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 17, 2019, 10:01pm UTC](https://discuss.elastic.co/t/issue-with-free-disk-space-example/159795/4 "2019-01-17T22:01:54Z")

</div>

Closed on January 17, 2019, 10:01pm UTC

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