Skip to content

Commit ffba3b6

Browse files
authored
Merge pull request #43 from r00m/fix-logstash-example
Fix logstash example
2 parents 59b8cc0 + 9c43316 commit ffba3b6

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

README.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ Modify your ``settings.py`` to integrate ``python-logstash`` with Django's loggi
125125
...
126126
}
127127

128-
Note
129-
====
128+
Example Logstash Configuration
129+
==============================
130130

131131
Example Logstash Configuration (``logstash.conf``) for Receiving Events from python-logstash is::
132132

133133
input {
134-
tcp {
135-
port => 5000
134+
udp {
135+
port => 5959
136136
codec => json
137137
}
138138
}
@@ -141,3 +141,5 @@ Example Logstash Configuration (``logstash.conf``) for Receiving Events from pyt
141141
codec => rubydebug
142142
}
143143
}
144+
145+
For TCP input you need to change the logstash's input to ``tcp`` and modify django log handler's class to ``logstash.TCPLogstashHandler``

0 commit comments

Comments
 (0)