suricata
|
#include "suricata-common.h"
#include "conf.h"
#include "threadvars.h"
#include "util-byte.h"
#include "util-debug.h"
#include "util-mem.h"
#include "app-layer-parser.h"
#include "output.h"
#include "output-json.h"
#include "output-json-dns.h"
#include "rust.h"
Go to the source code of this file.
Data Structures | |
struct | LogDnsFileCtx_ |
struct | LogDnsLogThread_ |
Typedefs | |
typedef struct LogDnsFileCtx_ | LogDnsFileCtx |
typedef struct LogDnsLogThread_ | LogDnsLogThread |
Functions | |
bool | AlertJsonDns (void *txptr, JsonBuilder *js) |
bool | AlertJsonDoh2 (void *txptr, JsonBuilder *js) |
void | JsonDnsLogRegister (void) |
void | JsonDoh2LogRegister (void) |
Implements JSON DNS logging portion of the engine.
Definition in file output-json-dns.c.
#define LOG_A BIT_U64(2) |
Definition at line 45 of file output-json-dns.c.
#define LOG_A6 BIT_U64(37) |
Definition at line 80 of file output-json-dns.c.
#define LOG_AAAA BIT_U64(29) |
Definition at line 72 of file output-json-dns.c.
#define LOG_AFSDB BIT_U64(19) |
Definition at line 62 of file output-json-dns.c.
#define LOG_ALL_RRTYPES (~(uint64_t)(LOG_QUERIES|LOG_ANSWERS|LOG_FORMAT_DETAILED|LOG_FORMAT_GROUPED)) |
Definition at line 109 of file output-json-dns.c.
#define LOG_ANSWERS BIT_U64(1) |
Definition at line 43 of file output-json-dns.c.
#define LOG_ANY BIT_U64(58) |
Definition at line 101 of file output-json-dns.c.
#define LOG_APL BIT_U64(40) |
Definition at line 83 of file output-json-dns.c.
#define LOG_ATMA BIT_U64(33) |
Definition at line 76 of file output-json-dns.c.
#define LOG_CDNSKEY BIT_U64(53) |
Definition at line 96 of file output-json-dns.c.
#define LOG_CDS BIT_U64(52) |
Definition at line 95 of file output-json-dns.c.
#define LOG_CERT BIT_U64(36) |
Definition at line 79 of file output-json-dns.c.
#define LOG_CNAME BIT_U64(6) |
Definition at line 49 of file output-json-dns.c.
#define LOG_DHCID BIT_U64(47) |
Definition at line 90 of file output-json-dns.c.
#define LOG_DNAME BIT_U64(38) |
Definition at line 81 of file output-json-dns.c.
#define LOG_DNSKEY BIT_U64(46) |
Definition at line 89 of file output-json-dns.c.
#define LOG_DS BIT_U64(41) |
Definition at line 84 of file output-json-dns.c.
#define LOG_FORMAT_ALL (LOG_FORMAT_GROUPED|LOG_FORMAT_DETAILED) |
Definition at line 108 of file output-json-dns.c.
#define LOG_FORMAT_DETAILED BIT_U64(61) |
Definition at line 105 of file output-json-dns.c.
#define LOG_FORMAT_GROUPED BIT_U64(60) |
Definition at line 104 of file output-json-dns.c.
#define LOG_GPOS BIT_U64(28) |
Definition at line 71 of file output-json-dns.c.
#define LOG_HINFO BIT_U64(14) |
Definition at line 57 of file output-json-dns.c.
#define LOG_HIP BIT_U64(51) |
Definition at line 94 of file output-json-dns.c.
#define LOG_HTTPS BIT_U64(62) |
Definition at line 106 of file output-json-dns.c.
#define LOG_IPSECKEY BIT_U64(43) |
Definition at line 86 of file output-json-dns.c.
#define LOG_ISDN BIT_U64(21) |
Definition at line 64 of file output-json-dns.c.
#define LOG_KEY BIT_U64(26) |
Definition at line 69 of file output-json-dns.c.
#define LOG_KX BIT_U64(35) |
Definition at line 78 of file output-json-dns.c.
#define LOG_LOC BIT_U64(30) |
Definition at line 73 of file output-json-dns.c.
#define LOG_MAILA BIT_U64(57) |
Definition at line 100 of file output-json-dns.c.
#define LOG_MB BIT_U64(8) |
Definition at line 51 of file output-json-dns.c.
#define LOG_MD BIT_U64(4) |
Definition at line 47 of file output-json-dns.c.
#define LOG_MF BIT_U64(5) |
Definition at line 48 of file output-json-dns.c.
#define LOG_MG BIT_U64(9) |
Definition at line 52 of file output-json-dns.c.
#define LOG_MINFO BIT_U64(15) |
Definition at line 58 of file output-json-dns.c.
#define LOG_MR BIT_U64(10) |
Definition at line 53 of file output-json-dns.c.
#define LOG_MX BIT_U64(16) |
Definition at line 59 of file output-json-dns.c.
#define LOG_NAPTR BIT_U64(34) |
Definition at line 77 of file output-json-dns.c.
#define LOG_NS BIT_U64(3) |
Definition at line 46 of file output-json-dns.c.
#define LOG_NSAP BIT_U64(23) |
Definition at line 66 of file output-json-dns.c.
#define LOG_NSAPPTR BIT_U64(24) |
Definition at line 67 of file output-json-dns.c.
#define LOG_NSEC BIT_U64(45) |
Definition at line 88 of file output-json-dns.c.
#define LOG_NSEC3 BIT_U64(48) |
Definition at line 91 of file output-json-dns.c.
#define LOG_NSEC3PARAM BIT_U64(49) |
Definition at line 92 of file output-json-dns.c.
#define LOG_NULL BIT_U64(11) |
Definition at line 54 of file output-json-dns.c.
#define LOG_NXT BIT_U64(31) |
Definition at line 74 of file output-json-dns.c.
#define LOG_OPT BIT_U64(39) |
Definition at line 82 of file output-json-dns.c.
#define LOG_PTR BIT_U64(13) |
Definition at line 56 of file output-json-dns.c.
#define LOG_PX BIT_U64(27) |
Definition at line 70 of file output-json-dns.c.
#define LOG_QUERIES BIT_U64(0) |
Definition at line 42 of file output-json-dns.c.
#define LOG_RP BIT_U64(18) |
Definition at line 61 of file output-json-dns.c.
#define LOG_RRSIG BIT_U64(44) |
Definition at line 87 of file output-json-dns.c.
#define LOG_RT BIT_U64(22) |
Definition at line 65 of file output-json-dns.c.
#define LOG_SIG BIT_U64(25) |
Definition at line 68 of file output-json-dns.c.
#define LOG_SOA BIT_U64(7) |
Definition at line 50 of file output-json-dns.c.
#define LOG_SPF BIT_U64(54) |
Definition at line 97 of file output-json-dns.c.
#define LOG_SRV BIT_U64(32) |
Definition at line 75 of file output-json-dns.c.
#define LOG_SSHFP BIT_U64(42) |
Definition at line 85 of file output-json-dns.c.
#define LOG_TKEY BIT_U64(55) |
Definition at line 98 of file output-json-dns.c.
#define LOG_TLSA BIT_U64(50) |
Definition at line 93 of file output-json-dns.c.
#define LOG_TSIG BIT_U64(56) |
Definition at line 99 of file output-json-dns.c.
#define LOG_TXT BIT_U64(17) |
Definition at line 60 of file output-json-dns.c.
#define LOG_URI BIT_U64(59) |
Definition at line 102 of file output-json-dns.c.
#define LOG_WKS BIT_U64(12) |
Definition at line 55 of file output-json-dns.c.
#define LOG_X25 BIT_U64(20) |
Definition at line 63 of file output-json-dns.c.
#define MODULE_NAME "JsonDnsLog" |
Definition at line 671 of file output-json-dns.c.
typedef struct LogDnsFileCtx_ LogDnsFileCtx |
typedef struct LogDnsLogThread_ LogDnsLogThread |
enum DnsRRTypes |
Definition at line 110 of file output-json-dns.c.
bool AlertJsonDns | ( | void * | txptr, |
JsonBuilder * | js | ||
) |
Definition at line 251 of file output-json-dns.c.
References LOG_ALL_RRTYPES, LOG_ANSWERS, LOG_FORMAT_DETAILED, and LOG_QUERIES.
Referenced by AlertJsonDoh2().
bool AlertJsonDoh2 | ( | void * | txptr, |
JsonBuilder * | js | ||
) |
Definition at line 257 of file output-json-dns.c.
References AlertJsonDns(), ALPROTO_DNS, ALPROTO_DOH2, and DetectGetInnerTx().
void JsonDnsLogRegister | ( | void | ) |
Definition at line 671 of file output-json-dns.c.
void JsonDoh2LogRegister | ( | void | ) |
Definition at line 678 of file output-json-dns.c.
References LOGGER_JSON_TX, and OutputRegisterTxSubModule().
const char* config_rrtype |
Definition at line 174 of file output-json-dns.c.
uint64_t flags |
Definition at line 175 of file output-json-dns.c.