Error in logstash config file after adding gelf

I receive the following error after adding gelf in logstash config file. The gelf output plugin is listed as one of my plugins.

Error: Expected one of #, input, filter, output at line 9, column 1 (byte 125)

input {
file {
type => "apache"
path => "var/log/logstash/access_log"
start_position => "beginning"
}
}
gelf {
host => "99.99.99.99"
}

As it says, line 9 is an issue, it should look like;

input {
file {
type => "apache"
path => "var/log/logstash/access_log"
start_position => "beginning"
}
gelf {
host => "10.6.1.51"
}
}