Skip to content

Commit a0cf800

Browse files
committed
Merge pull request #36 from shreyu86/master
Adding Sample Logstash Config
2 parents c3627b2 + deffe4d commit a0cf800

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

README.rst

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ For example::
9292
except:
9393
test_logger.exception('python-logstash-logger: Exception with stack trace!')
9494

95-
95+
9696

9797
Using with Django
9898
=================
@@ -123,10 +123,27 @@ Modify your ``settings.py`` to integrate ``python-logstash`` with Django's loggi
123123
...
124124
}
125125

126+
Note
127+
====
128+
129+
Example Logstash Configuration (``logstash.conf``) for Receiving Events from python-logstash is::
130+
131+
input {
132+
tcp {
133+
port => 5000
134+
codec => json
135+
}
136+
}
137+
output {
138+
stdout {
139+
codec => rubydebug
140+
}
141+
}
142+
126143
Contributors
127144
------------
128145
- Volodymyr Klochan
129146
- Kiall Mac Innes
130147
- Alexander Boyd
131148
- joel-wright
132-
- Dale O'Brien
149+
- Dale O'Brien

0 commit comments

Comments
 (0)