Custom Events Iglu Setup


#1

I made a static repo for Iglu Events available publicly . As well documentation for this is not available . Please find the Self describing JSON https://s3.amazonaws.com/taxing.link/schemas/com.shashank/exampleEvent/jsonschema/1-0-0 .

I am not getting any errors but I can’t find the Custom Events in Elastic Search or CSV after enrichment or in Redshift after running enrichment .

        {
       "schema": "iglu:com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-0",
      "data": {
      "cacheSize": 500,
      "repositories": [
        {
          "name": "Iglu Central",
          "priority": 0,
          "vendorPrefixes": [ "com.snowplowanalytics" ],
          "connection": {
            "http": {
              "uri": "http://iglucentral.com"
            }
          }
        },
        {
          "name": "Shashank's Iglu Repo",
          "priority": 1,
          "vendorPrefixes": [ "com.shashank" ],
          "connection": {
            "http": {
              "uri": "https://s3.amazonaws.com/taxing.link/schemas"
            }
          }
        }
      ]
    }
  }

----> Below is Tracker code to log to Pipeline

  t.track_self_describing_event(SelfDescribingJson(
    "iglu:com.shashank/exampleEvent/jsonschema/1-0-0",
    {
      "examplePropertyOne": "Hello",
      "examplePropertyTwo": "World",
      "examplePropertyThree": 100.00   }
  ))

Self Describing JSON for the above event .

  {
      "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
      "description": "Schema for an example event",
      "self": {
          "vendor": "com.shashank",
          "name": "exampleEvent",
          "format": "jsonschema",
          "version": "1-0-0"
      },

      "type": "object",
      "properties": {
          "examplePropertyOne": {
              "description": "Just a text property",
              "type": ["string","null"]
          },
          "examplePropertyTwo": {
              "description": "Just a second text property",
              "type": ["string","null"]
          },
          "examplePropertyThree": {
              "description": "Just some third property that happens to be numeric",
              "type": ["number","null"]
          }
      },
      "additionalProperties": false
  }

#2

I believe I ran into a variant of this problem. You don’t need the schemas in your custom Iglu repo URL try https://s3.amazonaws.com/taxing.link instead.

I believe it’s automatically added by the Iglu client, in my case I didn’t have it in the path at all.


#3

Thanks @gareth . “https://s3.amazonaws.com/taxing.link” is working .