Find the bash script in the deployment package in the file
/testing/send-data-to-mde.sh. This script requires two arguments:
The project ID.
The type of data to send. This can be either numeric or discrete.
When sending data the timestamp is automatically injected and the rest of the
values are the same. If you want to send a different payload edit the
bash script.
For example to send numeric data use the following command:
./send-data-to-mde.shPROJECT_IDnumeric
You will see a similar response:
send-data-to-mde.sh:*****WelcometotheMDEDataGenerator*****
ThisscriptwillsendnumericdatatoMDEsothatyoucan
validatethattheentirepipelineisworking
PROJECT_IDsettoPROJECT_ID
You're authenticated as USER_EMAIL Do you want to start sending data [Y/n]? Y Sending messages every 5 seconds Press [CTRL+C] to stop.. Sent: { "tagName": "mde-test-numeric", "timestamp": "1695643807000", "value": 10 } messageIds: - '8840355690320815'
To send discrete data use the following command:
./send-data-to-mde.shPROJECT_IDdiscrete
You will see a similar response:
send-data-to-mde.sh:*****WelcometotheMDEDataGenerator*****
ThisscriptwillsenddiscretedatatoMDEsothatyoucan
validatethattheentirepipelineisworking
PROJECT_IDsettoPROJECT_ID
You're authenticated as USER_EMAIL Do you want to start sending data [Y/n]? Y Sending messages every 5 seconds Press [CTRL+C] to stop.. Sent: { "tagName": "mde-test-discrete", "timestamp": "1695643827000", "value": { "test1": true, "test2": "someValue" } } messageIds: - '9223124765272389'
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[],[],null,["# Generate sample data\n====================\n\nThis guide explains how you can generate sample data using the bash script\nprovided in the release package.\n\nBefore you begin\n----------------\n\nMake sure to apply the [default configuration package](/manufacturing-data-engine/docs/deployment/default-config-package)\nor create relevant message classes, types, and parsers.\n\nExecute the script to generate sample data\n------------------------------------------\n\nFind the bash script in the deployment package in the file\n`/testing/send-data-to-mde.sh`. This script requires two arguments:\n\n1. The project ID.\n2. The type of data to send. This can be either `numeric` or `discrete`.\n\nWhen sending data the timestamp is automatically injected and the rest of the\nvalues are the same. If you want to send a different payload edit the\nbash script.\n\nFor example to send `numeric` data use the following command: \n\n ./send-data-to-mde.sh PROJECT_ID numeric\n\nYou will see a similar response: \n\n send-data-to-mde.sh: ***** Welcome to the MDE Data Generator *****\n This script will send numeric data to MDE so that you can\n validate that the entire pipeline is working\n PROJECT_ID set to PROJECT_ID\n You're authenticated as USER_EMAIL\n Do you want to start sending data [Y/n]? Y\n\n Sending messages every 5 seconds\n Press [CTRL+C] to stop..\n Sent:\n {\n \"tagName\": \"mde-test-numeric\",\n \"timestamp\": \"1695643807000\",\n \"value\": 10\n }\n messageIds:\n - '8840355690320815'\n\nTo send `discrete` data use the following command: \n\n ./send-data-to-mde.sh PROJECT_ID discrete\n\nYou will see a similar response: \n\n send-data-to-mde.sh: ***** Welcome to the MDE Data Generator *****\n This script will send discrete data to MDE so that you can\n validate that the entire pipeline is working\n PROJECT_ID set to PROJECT_ID\n You're authenticated as USER_EMAIL\n Do you want to start sending data [Y/n]? Y\n\n Sending messages every 5 seconds\n Press [CTRL+C] to stop..\n Sent:\n {\n \"tagName\": \"mde-test-discrete\",\n \"timestamp\": \"1695643827000\",\n \"value\": {\n \"test1\": true,\n \"test2\": \"someValue\"\n }\n }\n messageIds:\n - '9223124765272389'"]]