Class LogEntryBatch.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • source

        public LogEntryBatch.Builder source​(String source)
        Source of the logs that generated the message.

        This could be the instance name, hostname, or the source used to read the event. For example, “ServerA”.

        Parameters:
        source - the value to set
        Returns:
        this builder
      • type

        public LogEntryBatch.Builder type​(String type)
        This field signifies the type of logs being ingested.

        For example: ServerA.requestLogs.

        Parameters:
        type - the value to set
        Returns:
        this builder
      • subject

        public LogEntryBatch.Builder subject​(String subject)
        This optional field is useful for specifying the specific sub-resource or input file used to read the event.

        For example: “/var/log/application.log”.

        Parameters:
        subject - the value to set
        Returns:
        this builder
      • defaultlogentrytime

        public LogEntryBatch.Builder defaultlogentrytime​(Date defaultlogentrytime)
        The timestamp for all log entries in this batch.

        This can be considered as the default timestamp for each entry, unless it is overwritten by the entry time. An RFC3339-formatted date-time string with milliseconds precision.

        Parameters:
        defaultlogentrytime - the value to set
        Returns:
        this builder