如何通过logstash将XBRL数据加载到Elasticsearch

时间:2016-06-30 13:18:30

标签: logstash

- <!--Cost of Revenues -->
<group type="ci:grossProfit.costOfGoodsAndServicesSold">
- <group type="ci:costOfGoodsAndServicesSold.costOfGoodsSold">
<label href="xpointer(..)" xml:lang="en">License</label>
<item id="IS-010" period="P1Y/1999-05-31">19355</item>
<item id="IS-011" period="P1Y/1998-05-31">11220</item>
<item id="IS-012" period="P1Y/1997-05-31">6362</item>
</group>
- <group type="ci:costOfGoodsAndServicesSold.costOfServices">
<label href="xpointer(..)" xml:lang="en">Service</label>
<item id="IS-013" period="P1Y/1999-05-31">18350</item>
<item id="IS-014" period="P1Y/1998-05-31">11118</item>
<item id="IS-015" period="P1Y/1997-05-31">8260</item>
</group>
<label href="xpointer(..)" xml:lang="en">Total cost of revenues</label>
<item id="IS-016" period="P1Y/1999-05-31">37705</item>
<item id="IS-017" period="P1Y/1998-05-31">22338</item>
<item id="IS-018" period="P1Y/1997-05-31">14622</item>
</group>
- <!-- Gross profit -->
- <group type="ci:operatingProfit.grossProfit">
<label href="xpointer(..)" xml:lang="en">Gross profit</label>
<item id="IS-019" period="P1Y/1999-05-31">97202</item>
<item id="IS-020" period="P1Y/1998-05-31">63321</item>
<item id="IS-021" period="P1Y/1997-05-31">42498</item>
</group>
<!-- Operating expenses -->
- <group type="ci:operatingProfit.operatingExpenses">
- <group           type="ci:sellingGeneralAndAdministrativeExpenses.sellingAndMarketingExpenses">
<label href="xpointer(..)" xml:lang="en">Sales and marketing</label>
<item id="IS-022" period="P1Y/1999-05-31">47982</item>
<item id="IS-023" period="P1Y/1998-05-31">31636</item>
<item id="IS-024" period="P1Y/1997-05-31">21935</item>
</group>

通过logstash将XBRL数据加载到Elasticsearch。上面提到的数据是我的XBRL测试数据。 配置logstash配置文件时遇到困难。 请帮我找一个解决方案。

0 个答案:

没有答案