AnsweredAssumed Answered

How to Define Language Keys in Lua Parsers

Question asked by RSA Admin Employee on Feb 15, 2013
Latest reply on Dec 19, 2013 by huan zhou

I just finished my first Lua parser (https://community.emc.com/docs/DOC-21579). The parser tackles NTLM over HTTP, i.e., extracts user and host information from proxy authorizations. I'm aware that this is not very useful to most of you, but since the availabe documentation on Lua-based parsers is still scarce I thought I share it anyway.

 

One thing I couldn't figure out is how to properly define language keys. The presentation "We’re Going to the Lua" uses the following notion:

local lkClient = nw:LanguageKey("client")

clientParser:setKeys({lkClient})

 

This didn't work for me and I had to use 

clientParser:setKeys(

  {nwlanguagekey.create('client', nwtypes.Text, "Client Application")}

)

 

What's the difference between the two?

Outcomes