The library you pointed to may support other formats. If not you’ll need to find another one or write it yourself.
If you don’t understand programming there are lots of resources you can use to hire someone who does or learn programming. > On Apr 26, 2019, at 1:42 AM, Nitish Saboo <nitish.sabo...@gmail.com> wrote: > > Hi, > > I am not sure if the input syslog msg will come in rfc3164 or rfc5424 format. > > 1)What is the generic way to parse raw syslog messages in GO ? > 2)Once the msg is parsed how can I find that the raw syslog msg was in which > format ? I mean was it in RFC3164 format or was it in RFC 5424 format ? > 3)Since I have to send the parsed message to a syslog engine, Do I have to > send the entire LogParts to the Syslog-engine ? > > Thanks > >> On Fri, Apr 26, 2019 at 12:03 AM Robert Engels <reng...@ix.netcom.com> wrote: >> See >> https://github.com/nanobox-io/golang-syslogparser/blob/master/rfc3164/example_test.go >> >> You will have a LogParts structure you can use. >> >>> On Apr 25, 2019, at 12:48 PM, Nitish Saboo <nitish.sabo...@gmail.com> wrote: >>> >>> Hi Robert, >>> >>> If the package parses raw syslog msgs according to rfc3164, I have few >>> questions: >>> >>> 1)Will the output of the parsed msg will be a structured syslog msgs? >>> >>> 2)How to get the parsed content out of it ?I have to pass that parsed >>> content to a syslog-ng engine >>> >>> Thanks, >>> Nitish >>>> On Thu, Apr 25, 2019 at 10:35 PM Robert Engels <reng...@ix.netcom.com> >>>> wrote: >>>> That package parses syslog msgs according to rfc3164 so if that works for >>>> you then use it. >>>> >>>>> On Apr 25, 2019, at 11:55 AM, Nitish Saboo <nitish.sabo...@gmail.com> >>>>> wrote: >>>>> >>>>> Hi, >>>>> >>>>> Can someone please guide me on this ? >>>>> >>>>> Thanks >>>>> >>>>>> On Thu, Apr 25, 2019 at 2:27 PM Nitish Saboo <nitish.sabo...@gmail.com> >>>>>> wrote: >>>>>> Hi, >>>>>> >>>>>> I want to parse raw syslog messages in GO.Similar to glossy npm, which >>>>>> is a very generic yet powerful library for parsing raw syslog messages, >>>>>> How can we parse raw syslog message in GO ? >>>>>> >>>>>> Can I make use of this link >>>>>> 'https://github.com/nanobox-io/golang-syslogparser/blob/master/rfc3164/rfc3164.go' >>>>>> for parsing the raw syslog messages ? >>>>>> >>>>>> Thanks >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "golang-nuts" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>>> an email to golang-nuts+unsubscr...@googlegroups.com. >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google Groups >>>>> "golang-nuts" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send an >>>>> email to golang-nuts+unsubscr...@googlegroups.com. >>>>> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.