Skip to main content
Version: 1.2.9

Elasticsearch

Flow data is ultimately saved to Elasticsearch. Following are the fields that are used/created in Logstash and that you may see returned by an elasticsearch query.

Flow fields#

nameexampledescription
startJun 9, 2020 @ 17:39:53.808Start time of the flow (first packet seen)
endJun 9, 2020 @ 17:39:57.699End time of the flow (last packet seen)
meta.ida17c4f05420d7ded9eb151ccd293a633 ff226d1752b24e0f4139a87a8b26d779Id of the flow (hash of 5-tuple + Sensor name)
meta.flow_typesflow'sflow', 'netflow', or 'tstat'
meta.protocoltcpProtocol used
meta.sensor_idsnvl2-pw-sw-1-mgmt-2.cenic.netSensor name (set in importer config, may not always be a hostname)
meta.sensor_groupCENICSensor group, usually the network
meta.sensor_typeRegional NetworkSensor type ('Circuit', 'Regional Network', etc)
meta.country_scopeDomestic'Domestic', 'International', or 'Mixed', depending on countries of src and dst
meta.is_network_testingno'yes' if discipline is 'CS.Network Testing and Monitoring' or port is one used for PerfSonar: 5001, 5101, or 5201

Source Fields (Destination Fields similarly with "dst")#

nameexampledescription
meta.src_ip171.64.68.xdeidentified IP address
meta.src_port80port used
meta.src_asn32Source ASN from the flow header or, in some cases, the ANS of the IP from the MaxMind GeoIP ASN database
meta.src_organizationStanford Universityorganization that owns the AS from the CAIDA ASN-Organization database
meta.src_location.lat37.423latitude of the IP from the MaxMind GeoIP City database
meta.src_location.lon-122.164longitude of the IP from the MaxMind GeoIP City database
meta.src_country_nameUnited Statescountry of the IP from the MaxMind GeoIP City database
meta.src_continentNorth Americacontinent of the IP the MaxMind GeoIP City database
meta.src_ifindex166the index of the interface the flow came into

Source Science Registry Fields (Destination Fields similarly with "dst")#

The Science Registry stores human-curated information about various "resources". Resources are sources and destinations of flows.

nameexampledescription
meta.scireg.src.disciplineMPS.Physics.High EnergyThe science discipline that uses the resource (ie IP). Note that not the src MAY not have the same discipline as the dst.
meta.scireg.src.roleStorageRole that the host plays
meta.scireg.src.org_nameBoston University (BU)The organization the manages and/or uses the resource, as listed in the Science Registry
meta.scireg.src.org_abbrBoston UA shorter name for the organization. May not be the official abbreviation.
meta.scireg.src.resourceBU - ATLASDescriptive resource name from SciReg
meta.scireg.src.resource_abbrResource abbreviation (if any)
meta.scireg.src.project_namesATLAS"Projects" that the resource is part of
meta.scireg.src.latitude37.4178Resource's latitude, as listed in the Science Registry
meta.scireg.src.longitude-122.178Resource's longitude, as listed in the Science Registry

Source "Preferred" Fields (Destination Fields similarly with "dst")#

nameexampledescription
meta.src_preferred_orgStanford UniversityIf the IP was found in the Science Registry, this is the SciReg organization, otherwise it is the CAIDA organization
meta.src_preferred_location.lat37.417800Science Registry value if available, otherwise the MaxMind City DB value
meta.src_preferred_location.lon-122.172000iScience Registry value if available, otherwise the MaxMind City DB value

Value Fields#

nameexampledescription
values.num_bits939, 458, 560Sum of the number of bits in the (stitched) flow
values.num_packets77, 824Sum of the number of packets in the (stitched) flows
values.duration3.891Calculated as end minus start.
values.bits_per_second241, 443, 988Calculated as num_bits divided by duration
values.packets_per_second20, 001Calculated as num_packets divided by duration

Tstat Value Fields#

nameexample
values.tcp_cwin_max1549681
values.tcp_cwin_min17
values.tcp_initial_cwin313
values.tcp_max_seg_size64313
values.tcp_min_seg_size17
values.tcp_mss8960
values.tcp_out_seq_pkts0
values.tcp_pkts_dup0
values.tcp_pkts_fc0
values.tcp_pkts_fs0
values.tcp_pkts_reor0
values.tcp_pkts_rto0
values.tcp_pkts_unfs0
values.tcp_pkts_unk2
values.tcp_pkts_unrto0
values.tcp_rexmit_bytes1678
values.tcp_rexmit_pkts2
values.tcp_rtt_avg0.044
values.tcp_rtt_max39.527
values.tcp_rtt_min0.001
values.tcp_rtt_std0.276
values.tcp_sack_cnt1
values.tcp_win_max1549681
values.tcp_win_min17
values.tcp_window_scale13

Developer Fields#

nameexampledescription
@ingest_timeJun 9, 2020 @ 10:03:20.700Essentially time the flow went into the logstash pipeline or the time stitching of the flow commenced
@timestampJun 9, 2020 @ 18:03:21.703The time the flow went into the logstash pipeline for tstat flows, or the time stitching finished and the event was pushed for other flows.
@exit_timeJun 9, 2020 @ 18:03:25.369The time the flow exited the pipeline
@processing_time688.31@exit_time minus @ingest_time. Useful for seeing how long stitching took.
stitched_flows13Number of flows that came into logstash that were stitched together to make this final one. 1 if no flows were stitched together. 0 for tstat flows, which are never stitched.
es_doc_id4f46bef884...Hash of meta.id and start time. May be used as doc id in ES to prevent duplicates, but see Notes elsewhere.
tagsmaxmind src asnVarious info and error messages
trial5Can be set in 40-aggregation.conf if desired

Elasticsearch Fields#

nameexampledescription
_indexom-ns-netsage-2020.06.14name of the index ("database table")
_type_docset by ES
_idHRkcm3IByJ9fEnbnCpaYelasticsearch document id. If es_doc_id is provided, that is used.
_score1set by ES query
@version1set by ES