kafka as a producer

shiraa
Tera Contributor

Hey , 

I'm trying to create kafka as a producer

My kafka app is runing on a vm 

my output looks like-{"message":"yoel Test 13 to kafka","version":"1.0"}

I created a new table with 2 fields message & version

I want to import the data to this table-what are my next steps?

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@shiraa 

what's your business requirement here?

If you wish to insert that data in ServiceNow then you can use Table API and ensure the field names are correct and hit the endpoint with correct API user who has create access to that table

your table API method will be PUT

JSON body will be like this

{

"field1":"field1value",

"field2":"field2value"

}

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I have this data on a vm

shiraa_0-1737378628647.png

i want it to get into this table i created

shiraa_1-1737378718867.png

how can i pull the kafka messages into the table?

 

 

Adam Celli
ServiceNow Employee
ServiceNow Employee

Have you completed the steps to connect ServiceNow to your Kafka environment? https://www.servicenow.com/docs/bundle/washingtondc-integrate-applications/page/administer/integrati...


Once that's completed you will need to configure a consumer in your instance to process the messages. For inserting into a table you can use a Transform map or ETL consumer. Both options are linked in the above docs page.