# Exportd update/insert every all items and not the one

**URL:** <https://community.datagerry.com/t/exportd-update-insert-every-all-items-and-not-the-one/391>\
**Category:** Community Support\
**Created:** [August 10, 2021, 8:08am UTC](https://community.datagerry.com/t/exportd-update-insert-every-all-items-and-not-the-one/391 "2021-08-10T08:08:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhHo](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@PhHo](https://community.datagerry.com/u/PhHo)\
**Post date:** [August 10, 2021, 8:08am UTC](https://community.datagerry.com/t/exportd-update-insert-every-all-items-and-not-the-one/391/1 "2021-08-10T08:08:39Z")

</div>

Hey all,  
i use the Exportd (ExternalSystemExecuteScript) to propagate all changes from specified object to our zabbix instance.

the problem is that all objects and not the one that i created/edited is propagated to the script.

I have set the Execution settings, “Run Exportd Job on Event” and “Transfer subset” in the Job Settings, without any success.

Example: create object (only object\_id: 24 is fresh created)

```auto
[
  {
    "object_id": "13",
    "event": "insert",
    "variables": {
      "hostname": "r2d2",
      "ip": "10.10.11.1",
      "ipmi-ip": "10.10.0.83"
    }
  },
  {
    "object_id": "19",
    "event": "insert",
    "variables": {
      "hostname": "proxmox1",
      "ip": "10.10.0.10",
      "ipmi-ip": "10.10.0.72"
    }
  },
  {
    "object_id": "24",
    "event": "insert",
    "variables": {
      "hostname": "test",
      "ip": "2.2.2.2",
      "ipmi-ip": "1.1.1.1"
    }
  },
  {
    "object_id": "21",
    "event": "insert",
    "variables": {
      "hostname": "ml-server",
      "ip": "10.10.10.42",
      "ipmi-ip": "10.10.0.74"
    }
  },
  {
    "object_id": "22",
    "event": "insert",
    "variables": {
      "hostname": "ml-server-2",
      "ip": "10.10.10.43",
      "ipmi-ip": "10.10.0.75"
    }
  },
  {
    "object_id": "20",
    "event": "insert",
    "variables": {
      "hostname": "proxmox2",
      "ip": "10.10.1.12",
      "ipmi-ip": "10.10.0.73"
    }
  }
]

```

Same with updated objects, only the “event” field is different and set to “update”.

Only when i delete an object is it working and the script execute with one object.

I hope my explanation are understandable an you can help me

_Setup: official Docker Container_  
_DataGerry Version 1.6.4_  
_Database Version 20200512_

Regards  
Philipp

---

<div class="post-metadata">

**Author:** ![PhHo](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@PhHo](https://community.datagerry.com/u/PhHo)\
**Post date:** [August 20, 2021, 7:43am UTC](https://community.datagerry.com/t/exportd-update-insert-every-all-items-and-not-the-one/391/2 "2021-08-20T07:43:55Z")

</div>

I found these document, but the “Transfer subset” checkbox is not working as explained.  
The only difference is, that i have no condition in my exportd job.

> <https://github.com/NETHINKS/DATAGERRY/blob/c4818ae2b2165ccca661f49e451200d8df1def3f/docs/source/admin_guide/exportd.rst#configure-scheduling>

---

<div class="post-metadata">

**Author:** ![sergej.dumler](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@sergej.dumler](https://community.datagerry.com/u/sergej.dumler)\
**Post date:** [August 26, 2021, 9:22am UTC](https://community.datagerry.com/t/exportd-update-insert-every-all-items-and-not-the-one/391/3 "2021-08-26T09:22:39Z")

</div>

Thank you for the information. We will take a look.

---

<div class="post-metadata">

**Author:** ![robaato](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@robaato](https://community.datagerry.com/u/robaato)\
**Post date:** [October 14, 2021, 1:57pm UTC](https://community.datagerry.com/t/exportd-update-insert-every-all-items-and-not-the-one/391/4 "2021-10-14T13:57:21Z")

</div>

“Transfer subset” mode doesn’t appear to work at all with ExternalSystemExecuteScript, and after trying to modify/create/delete an object, I also don’t see any exportd logs. Interestingly, manual triggering works, in which case I get all objects (as I have no filter defined), whereas the documentation states that manual triggers should be ignored with ‘transfer’ subset’. So, there seems to be multiple issues here.

---

<div class="post-metadata">

**Author:** ![PhHo](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@PhHo](https://community.datagerry.com/u/PhHo)\
**Post date:** [October 19, 2021, 6:06am UTC](https://community.datagerry.com/t/exportd-update-insert-every-all-items-and-not-the-one/391/5 "2021-10-19T06:06:59Z")

</div>

I have wrote a small ExternalSystemExecuteScript script, this write a simple log file for my tests.

```auto
#!/bin/bash
set -x
set -v

if ! command -v jq &> /dev/null
then
	yum install jq -y
fi

#STDIN FROM DATAGERRY
JSON=$(cat /dev/stdin)

echo "$JSON" | jq . >> /opt/scripts/log.log

```

when i modify/create/delete an item, my script become all items with the specified event state “insert/update/delete”.

[https://youtu.be/y0HAO5WWdQM](https://youtu.be/y0HAO5WWdQM)

---

<div class="post-metadata">

**Author:** ![roop](https://avatars.discourse-cdn.com/v4/letter/r/49beb7/32.png) [@roop](https://community.datagerry.com/u/roop)\
**Post date:** [February 17, 2022, 9:44am UTC](https://community.datagerry.com/t/exportd-update-insert-every-all-items-and-not-the-one/391/6 "2022-02-17T09:44:23Z")

</div>

The same here. This is an important feature for us.  
Is it possible to move the topic to “Report a bug” category?
