How to add custom schema snowplow mini


#1

Hi,
please guide me through the process of adding custom schema to snowplow-mini’s iglu schema registry. Assuming I need to add a very simple schema shown below so that i could send some custom events from python tracker

{
“arg1”:String,
“arg2”:String
}


#2

@harsha, your example is not a schema Snowplow can work with. First, you might need to familiarize yourself with self-describing JSON schema. You can read more about it here.

Once you composed the JSON schema to validate your Python event, you can upload it to Mini either via UI (Iglu Server tab - see wiki) or with Igluctl. The Igluctl command could look (depending on the version of your Snowplow Mini) like this

igluctl static push path/to-schema/ http://<Mini-domain-or-IP>/iglu-server <API key> --public