code: @Override
    public void init(PlayerConfig config) throws InitializationFailedException {
      super.init(config);
      esBaseUrl = config.get(ES_BASE_URL_KEY);
      indexName = config.get(ES_INDEX_NAME_KEY);
      if (esBaseUrl == null || "".equals(esBaseUrl.trim())) {
        throw new IllegalArgumentException(this.getClass().getName() + " expects configuration property "
            + ES_BASE_URL_KEY);
      }
      if (indexName == null || "".equals(indexName.trim())) {
        throw new IllegalArgumentException(this.getClass().getName() + " expects configuration property "
            + ES_INDEX_NAME_KEY);
      }
    }
docs: (non-Javadoc)
  
  @see com.sematext.ag.sink.Sink#init(com.sematext.ag.PlayerConfig)