Getting Data In

Unable to send logs into Splunk from Django REST API

POR160893
Builder

Hi,

 

I need to send logs from a Django REST API to Splunk via Syslog protocol.
I am currently facing connection issues with the host and port I am using.

Here is the code I am using:

POR160893_0-1637281517139.png

My current output is as follows:

POR160893_1-1637281643257.png

 

Can someone please advise me on what port or host should be used to send such logs into Splunk?
Do I need to know what indexer I will be storing these logs on also?

Thanks

 

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...