New docs portal launching December 21st! All Exabeam, LogRhythm, and API documentation is moving to docs.exabeam.com. Existing links will redirect automatically, but we recommend updating your bookmarks.
5.0.7 5.0.6 5.0.5 5.0.4 5.0.3 5.0.2 5.0.1 5.0.0
5.0.7 5.0.6 5.0.5 5.0.4 5.0.3 5.0.2 5.0.1 5.0.0

Get Metadata Fields from DpiMessage (String, Int, Long)


function Flow_GetFieldFromDpiMessage (dpiMsg, ruleEngine) if (IsFinalShortFlow(dpiMsg)) then require 'LOG' -- Example for Internal fields. local protocol = GetString(dpiMsg, "Internal", "applicationpath"); local srcport = GetInt(dpiMsg, "Internal", "srcport"); local messageSize = GetLong(dpiMsg, "Internal", "messagesize"); EZINFO("Src Port: ", srcport); EZINFO("Message Size: ", messageSize); local app = GetLatestApplication(dpiMsg); if (app == 'http') then local uri = GetString(dpiMsg, "http", "uri_full"); local code = GetInt(dpiMsg, "http", "code"); local contentLen = GetLong(dpiMsg, "http", "content_len"); EZINFO("URI: ", uri); EZINFO("HTTP CODE: ", code); EZINFO("HTTP CONTENT LENGTH: ", contentLen); end endend