Skip to content

Commit

Permalink
Merge pull request #1107 from andrewkroh/feature/pb-dns-etls-plus-one
Browse files Browse the repository at this point in the history
Add eTLD+1 to the DNS documents published by Packetbeat
  • Loading branch information
tsg committed Mar 8, 2016
2 parents 3a13618 + 4820582 commit 2006e79
Show file tree
Hide file tree
Showing 7 changed files with 339 additions and 28 deletions.
7 changes: 5 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ install:
- ps: c:\gopath\src\github.com\elastic\beats\libbeat\scripts\install-go.ps1 -version 1.5.3
- set PATH=%GOROOT%\bin;%PATH%
# AppVeyor installed mingw is 32-bit only.
- cinst mingw > mingw-install.txt
- ps: Push-AppveyorArtifact mingw-install.txt
- ps: >-
if(!(Test-Path "C:\tools\mingw64\bin\gcc.exe")) {
cinst mingw > mingw-install.txt
Push-AppveyorArtifact mingw-install.txt
}
- set PATH=C:\tools\mingw64\bin;%GOROOT%\bin;%PATH%
- set PATH=%GOPATH%\bin;%PATH%
- go get github.com/pierrre/gotestcover
Expand Down
294 changes: 289 additions & 5 deletions packetbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This file is generated! See etc/fields.yml and scripts/generate_field_docs.py
[[exported-fields]]
== Exported Fields

This document describes the fields that are exported by Packetbeat. They are
This document describes the fields that are exported by Docs/Fields.Asciidoc. They are
grouped in the following categories:

* <<exported-fields-flows_event>>
Expand Down Expand Up @@ -477,7 +477,7 @@ The DNS status code.

==== dns.question.name

example: www.google.com
example: www.google.com.

The domain name being queried. If the name field contains non-printable characters (below 32 or above 126), then those characters are represented as escaped base 10 integers (\DDD). Back slashes and quotes are escaped. Tabs, carriage returns, and line feeds are converted to \t, \r, and \n respectively.

Expand All @@ -494,6 +494,12 @@ example: IN

The class of of records being queried.

==== dns.question.etld_plus_one

example: amazon.co.uk.

The effective top-level domain (eTLD) plus one more label. For example, the eTLD+1 for "foo.bar.golang.org." is "golang.org.". The data for determining the eTLD comes from an embedded copy of the data from http://publicsuffix.org.

==== dns.answers_count

type: int
Expand All @@ -503,7 +509,7 @@ The number of resource records contained in the `dns.answers` field.

==== dns.answers.name

example: example.com
example: example.com.

The domain name to which this resource record pertains.

Expand Down Expand Up @@ -547,7 +553,7 @@ The number of resource records contained in the `dns.authorities` field. The `dn

==== dns.authorities.name

example: example.com
example: example.com.

The domain name to which this resource record pertains.

Expand Down Expand Up @@ -598,7 +604,7 @@ The number of resource records contained in the `dns.additionals` field. The `dn

==== dns.additionals.name

example: example.com
example: example.com.

The domain name to which this resource record pertains.

Expand Down Expand Up @@ -626,6 +632,284 @@ The time interval in seconds that this resource record may be cached before it s
The data describing the resource. The meaning of this data depends on the type and class of the resource record.


=== amqp Fields

AMQP specific event fields.


==== amqp.reply-code

type: int

example: 404

AMQP reply code to an error, similar to http reply-code


==== amqp.reply-text

type: string

Text expliciting the error.


==== amqp.class-id

type: int

Failing method class.


==== amqp.method-id

type: int

Failing method ID.


==== amqp.exchange

type: string

Name of the exchange.


==== amqp.exchange-type

type: string

example: fanout

Exchange type.


==== amqp.passive

type: bool

If set, do not create exchange/queue.


==== amqp.durable

type: bool

If set, request a durable exchange/queue.


==== amqp.exclusive

type: bool

If set, request an exclusive queue.


==== amqp.auto-delete

type: bool

If set, auto-delete queue when unused.


==== amqp.no-wait

type: bool

If set, the server will not respond to the method.


==== amqp.consumer-tag

Identifier for the consumer, valid within the current channel.


==== amqp.delivery-tag

type: int

The server-assigned and channel-specific delivery tag.


==== amqp.message-count

type: int

The number of messages in the queue, which will be zero for newly-declared queues.


==== amqp.consumer-count

type: int

The number of consumers of a queue.


==== amqp.routing-key

type: int

Message routing key.


==== amqp.no-ack

type: bool

If set, the server does not expect acknowledgements for messages.


==== amqp.no-local

type: bool

If set, the server will not send messages to the connection that published them.


==== amqp.if-unused

type: bool

Delete only if unused.


==== amqp.if-empty

type: bool

Delete only if empty.


==== amqp.queue

type: string

The queue name identifies the queue within the vhost.


==== amqp.redelivered

type: bool

Indicates that the message has been previously delivered to this or another client.


==== amqp.multiple

type: bool

Acknowledge multiple messages.


==== amqp.arguments.*

Optional additional arguments passed to some methods. Can be of various types.


==== amqp.mandatory

type: bool

Indicates mandatory routing.


==== amqp.immediate

type: bool

Request immediate delivery.


==== amqp.content-type

type: string

example: text/plain

MIME content type.


==== amqp.content-encoding

type: string

MIME content encoding.


==== amqp.headers.*

Message header field table.


==== amqp.delivery-mode

type: int

Non-persistent (1) or persistent (2).


==== amqp.priority

type: int

Message priority, 0 to 9.


==== amqp.correlation-id

type: string

Application correlation identifier.


==== amqp.reply-to

type: string

Address to reply to.


==== amqp.expiration

type: string

Message expiration specification.


==== amqp.message-id

type: string

Application message identifier.


==== amqp.timestamp

type: string

Message timestamp.


==== amqp.type

type: string

Message type name.


==== amqp.user-id

type: string

Creating user id.


==== amqp.app-id

type: string

Creating application id.


[[exported-fields-http]]
=== Http Fields

Expand Down
Loading

0 comments on commit 2006e79

Please sign in to comment.