mattermost-developer-documentation icon indicating copy to clipboard operation
mattermost-developer-documentation copied to clipboard

Help Wanted: Document how to use `tail` and `jq` to parse plugin and App framework logs

Open mm-cloud-bot opened this issue 2 years ago • 3 comments

Mattermost user michael.kochell from https://community.mattermost.com has requested the following be documented:

As noted in this thread [<jump to convo>](/core/pl/8k8hd3xf3bfutgfwrs9cfypafo) - https://community.mattermost.com/core/pl/8k8hd3xf3bfutgfwrs9cfypafo, we can use the commands `tail` and `jq` together to parse Mattermost logs while the server is running. We can filter out logs for the App framework using this:

```sh
tail -f mattermost.log | jq -c 'select(.plugin_id=="com.mattermost.apps")'

See the original post [here](https://community.mattermost.com/_redirect/pl/papig1g3xtrwpdrti33ug9i87e).

_This issue was generated from [Mattermost](https://mattermost.com) using the [Doc Up](https://github.com/jwilander/mattermost-plugin-docup) plugin._

mm-cloud-bot avatar Jan 17 '23 19:01 mm-cloud-bot

@asatkinson - Do you have a resource available to help draft a dev docs update to address this request?

cwarnermm avatar Jan 18 '23 14:01 cwarnermm

@cwarnermm I would like to take this up, Is there a specific Doc section that should have this documented? Please let me know and feel free to add any additional details to help me solve this. Thanks.

cc: @mickmister

Rutam21 avatar Feb 01 '24 12:02 Rutam21

Hi @Rutam21! I think adding a new section called "Development Tips" (@cwarnermm does that sound okay?) to this page makes sense https://developers.mattermost.com/integrate/apps/quickstart

mickmister avatar Feb 01 '24 18:02 mickmister