# Service

The *SERVICE* defines the global behaviour of the [Fluent Bit](http://fluentbit.io) engine.

| name          | type | description                                       |
| ------------- | ---- | ------------------------------------------------- |
| Daemon        | Bool | If true go to background on start                 |
| Flush         | Int  | Interval to flush output (seconds)                |
| Grace         | Int  | Wait time (seconds) on exit                       |
| HTTP\_Listen  | Str  | Address to listen (e.g. 0.0.0.0)                  |
| HTTP\_Port    | Int  | Port to listen (e.g. 8888)                        |
| HTTP\_Server  | Bool | If true enable statistics HTTP server             |
| Log\_File     | Str  | File to log diagnostic output                     |
| Log\_Level    | Str  | Diagnostic level (error/warning/info/debug/trace) |
| Parsers\_File | Str  | Optional 'parsers' config file (can be multiple)  |
| Plugins\_File | Str  | Optional 'plugins' config file (can be multiple)  |

Note that *Parsers\_File* and *Plugins\_File* are both relative to the directory the main config file is in.

## Storage and Buffering Configuration

In addition to the properties listed in the table above, the Storage and Buffering options are extensively documented in the following section:

* [Storage & Buffering](https://docs.fluentbit.io/manual/1.3/configuration/buffering)

## Configuration Example

```
[SERVICE]
    Flush        1
    Daemon       Off
    Config_Watch On
    Parsers_File parsers.conf
    Parsers_File custom_parsers.conf
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fluentbit.io/manual/1.3/service.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
