{ "lager": { "title": "Lager Logs", "description": "Erlang lager log format", "regex": { "lager": { "pattern": "^(?\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}.\\d{3}) \\[(?.+?)\\] (?<\\S+?>)(@(?\\S+?):(?\\S+):(?\\d+))? (?.*)$" } }, "level-field": "level", "level": { "debug": "debug", "info": "info", "warning": "(notice|warning)", "error": "error", "critical": "(critical|alert)", "fatal": "emergency" }, "value": { "pid": { "kind": "string", "identifier": true }, "module": { "kind": "string", "identifier": true }, "function": { "kind": "string", "identifier": true }, "line": { "kind": "integer" } }, "sample": [ { "line": "2015-03-25 00:02:21.874 [info] <0.14042.1610>@mod_gc:gc_calls:91 Garbage collected 3 calls" } ] }, "lager_crash": { "title": "Lager crash logs", "description": "Erlang lager crash log format", "regex": { "lager": { "pattern": "^(?\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}) =(?\\S+) REPORT====" } }, "level-field": "level", "level": { "warning": "SUPERVISOR", "error": "ERROR", "fatal": "CRASH" }, "sample": [ { "line": "2015-03-25 07:06:11 =ERROR REPORT====\\n** Generic server <0.11286.218> terminating \\n** Last message in was {handle,{pubsub_item_store,mnesia},<0.1224.0>,{received_packet,iq,\"set\",{<<\"kclifford\\40marketcommunications.net.0c4efd27d904594bcbe4fb0012daec25878bb9bd\">>,<<\"api.coredial.com\">>,<<\"10866484561427281571231007\">>},\"1:subscribenode\",'http://jabber.org/protocol/pubsub',{xmlel,'jabber:component:accept',[],iq,[{xmlattr,undefined,<<\"from\">>,<<\"kclifford\\40marketcommunications.net.0c4efd27d904594bcbe4fb0012daec25878bb9bd@api.coredial.com/10866484561427281571231007\">>},{xmlattr,undefined,<<\"to\">>,<<\"presence.api.coredial.com\">>},{xmlattr,undefined,<<\"type\">>,<<\"set\">>},{xmlattr,undefined,<<\"id\">>,<<\"1:subscribenode\">>}],[{xmlel,'http://jabber.org/protocol/pubsub',[{'http://jabber.org/protocol/pubsub',none}],pubsub,[],[{xmlel,'http://jabber.org/protocol/pubsub',[],subscribe,[{xmlattr,undefined,<<\"node\">>,<<\"extension_-1\">>},{xmlattr,undefined,<<\"jid\">>,<<\"kclifford\\40marketcommunications.net.0c4efd27d904594bcbe4fb0012daec25878bb9bd@api.coredial.com/10866484561427281571231007\">>}],[]},{xmlel,'http://jabber.org/protocol/pubsub',[],options,[],[{xmlel,'jabber:x:data',[{'jabber:x:data',none}],x,[{xmlattr,undefined,<<\"type\">>,<<\"submit\">>}],[{xmlel,'jabber:x:data',[],field,[{xmlattr,undefined,<<\"var\">>,<<\"FORM_TYPE\">>},{xmlattr,undefined,<<\"type\">>,<<\"hidden\">>}],[{xmlel,'jabber:x:data',[],value,[],[{xmlcdata,<<\"http://jabber.org/protocol/pubsub#subscribe_options\">>}]}]},{xmlel,'jabber:x:data',[],field,[{xmlattr,undefined,<<\"var\">>,<<\"pubsub#show_values\">>}],[{xmlel,'jabber:x:data',[],value,[],[{xmlcdata,<<\"extension\">>}]}]}]}]}]}]}}}\\n** When Server state == {state}\\n** Reason for termination == \\n** {{badmatch,{xmlrpc_fault,500,\"A problem occured calling portal.extension_get!\"}},[{pubsub_srv,get_node_info,2,[{file,\"src/pubsub_srv.erl\"},{line,260}]},{pubsub_srv,subscribe,3,[{file,\"src/pubsub_srv.erl\"},{line,187}]},{pubsub_worker,handle_pubsub_action,6,[{file,\"src/pubsub_worker.erl\"},{line,227}]},{pubsub_worker,handle_iq,6,[{file,\"src/pubsub_worker.erl\"},{line,152}]},{pubsub_worker,handle_call,3,[{file,\"src/pubsub_worker.erl\"},{line,76}]},{gen_server,handle_msg,5,[{file,\"gen_server.erl\"},{line,588}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,227}]}]}\\n2015-03-25 07:06:11 =CRASH REPORT====\\n crasher:\\n initial call: pubsub_worker:init/1\\n pid: <0.11286.218>\\n registered_name: []\\n exception exit: {{{badmatch,{xmlrpc_fault,500,\"A problem occured calling portal.extension_get!\"}},[{pubsub_srv,get_node_info,2,[{file,\"src/pubsub_srv.erl\"},{line,260}]},{pubsub_srv,subscribe,3,[{file,\"src/pubsub_srv.erl\"},{line,187}]},{pubsub_worker,handle_pubsub_action,6,[{file,\"src/pubsub_worker.erl\"},{line,227}]},{pubsub_worker,handle_iq,6,[{file,\"src/pubsub_worker.erl\"},{line,152}]},{pubsub_worker,handle_call,3,[{file,\"src/pubsub_worker.erl\"},{line,76}]},{gen_server,handle_msg,5,[{file,\"gen_server.erl\"},{line,588}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,227}]}]},[{gen_server,terminate,6,[{file,\"gen_server.erl\"},{line,747}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,227}]}]}\\n ancestors: [<0.197.0>,pubsub_worker,pubsub_worker_sup,api_presence_sup,<0.103.0>]\\n messages: []\\n links: [<0.196.0>,<0.197.0>]\\n dictionary: [{random_seed,{4578,26540,24856}}]\\n trap_exit: false\\n status: running\\n heap_size: 46368\\n stack_size: 24\\n reductions: 45273707\\n neighbours:\\n2015-03-25 07:06:11 =SUPERVISOR REPORT====\\n Supervisor: {<0.197.0>,poolboy_sup}\\n Context: child_terminated\\n Reason: {{badmatch,{xmlrpc_fault,500,\"A problem occured calling portal.extension_get!\"}},[{pubsub_srv,get_node_info,2,[{file,\"src/pubsub_srv.erl\"},{line,260}]},{pubsub_srv,subscribe,3,[{file,\"src/pubsub_srv.erl\"},{line,187}]},{pubsub_worker,handle_pubsub_action,6,[{file,\"src/pubsub_worker.erl\"},{line,227}]},{pubsub_worker,handle_iq,6,[{file,\"src/pubsub_worker.erl\"},{line,152}]},{pubsub_worker,handle_call,3,[{file,\"src/pubsub_worker.erl\"},{line,76}]},{gen_server,handle_msg,5,[{file,\"gen_server.erl\"},{line,588}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,227}]}]}\\n Offender: [{pid,<0.11286.218>},{name,pubsub_worker},{mfargs,{pubsub_worker,start_link,undefined}},{restart_type,temporary},{shutdown,5000},{child_type,worker}]\\n\\n" } ] } }