# JSON Websocket as input format

**URL:** <https://community.graylog.org/t/json-websocket-as-input-format/19945>\
**Category:** Graylog Central (peer support)\
**Created:** [May 24, 2021, 5:21pm UTC](https://community.graylog.org/t/json-websocket-as-input-format/19945 "2021-05-24T17:21:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kcwebby](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@kcwebby](https://community.graylog.org/u/kcwebby)\
**Post date:** [May 24, 2021, 5:21pm UTC](https://community.graylog.org/t/json-websocket-as-input-format/19945/1 "2021-05-24T17:21:13Z")

</div>

I have an application that creates a outbound Websocket connection to send JSON formatted data.

I’d like to capture that information inside of Graylog for processing, to relieve some client scripts I have that are processing and then uploading via text logs on the host (via filebeat).

Is there an input that can be used to have applications connect (via websocket) and post JSON formatted messages to be captured and logged?  
I tried via the RAW/Plaintext, and I just get the HTTP request/response.

Thanks!

```auto
2021-05-24 17:20:12.072 +00:00	172.30.0.254
Connection: Upgrade
2021-05-24 17:20:12.072 +00:00	172.30.0.254
Sec-WebSocket-Key: fOpmqo2phXTtd6RsErtfdw==
2021-05-24 17:20:12.072 +00:00	172.30.0.254
Upgrade: websocket
2021-05-24 17:20:12.072 +00:00	172.30.0.254
GET / HTTP/1.1
2021-05-24 17:20:12.072 +00:00	172.30.0.254
User-Agent: WebSocket++/0.8.1

```

---

<div class="post-metadata">

**Author:** ![dscryber](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/dscryber/32/14178_2.png) [@dscryber](https://community.graylog.org/u/dscryber)\
**Post date:** [May 27, 2021, 2:09pm UTC](https://community.graylog.org/t/json-websocket-as-input-format/19945/2 "2021-05-27T14:09:11Z")

</div>

3 posts were merged into an existing topic: [About the Daily Challenges category](https://community.graylog.org/t/about-the-daily-challenges-category/19990)

---

<div class="post-metadata">

**Author:** ![dscryber](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/dscryber/32/14178_2.png) [@dscryber](https://community.graylog.org/u/dscryber)\
**Post date:** [May 27, 2021, 2:09pm UTC](https://community.graylog.org/t/json-websocket-as-input-format/19945/3 "2021-05-27T14:09:11Z")

</div>


