title: How to Configure Gerrit Webhooks for gerrit events
body: <p>I am trying to perform some actions on gerrit events</p>
  <ol>
  <li>When a new repo is added/created.</li>
  <li>When a new patch-set is created.</li>
  <li>When a change is merged into a specific branch.</li>
  </ol>
  <p>The idea is to get event on API endpoint when any of the above happens in any repository.</p>
  <p>I have gerrit 3.1.3 installation running on Amazon Linux ec2 instance, and a node server (with open API endpoints) on another similar EC2 Machine. In gerrit config I have added the following lines:</p>
  <pre><code>[plugin &quot;webhooks&quot;]
      connectionTimeout = 3000
      socketTimeout = 2500
      maxTries = 300
      retryInterval = 2000
      threadPoolSize = 3
  [remote &quot;wh_projectCreated&quot;]
          url = http://17.233.138.23:8080/gereve
          maxTries = 1
          sslVerify = false
          event = patchset-created
  </code></pre>
  <p>I have checked <code>webhooks</code> and <code>hooks</code> plugins are both installed in gerrit installation.
  Now, I couldn't find a proper blog post which tells how to configure and get gerrit events to be received on webhooks.</p>
  <p>What do I need to do more, great help!</p>