<commit_before># Memory Usage

The __mem__ input plugin, gathers the information about the memory usage of the running system every certain interval of time and reports the total amount of memory and the amount of free available.

## Getting Started

In order to get memory usage from your system, you can run the plugin from the command line or through the configuration file:

### Command Line

```bash
$ bin/fluent-bit -i mem -t memory -o stdout -m '*'
Fluent-Bit v0.8.0
Copyright (C) Treasure Data

[0] memory: [1463544745, {"total"=>8081140, "free"=>2548704}]
[1] memory: [1463544746, {"total"=>8081140, "free"=>2560020}]
[2] memory: [1463544747, {"total"=>8081140, "free"=>2559616}]
[3] memory: [1463544748, {"total"=>8081140, "free"=>2559568}]
```

### Configuration File

In your main configuration file append the following _Input_ & _Output_ sections:

```python
[INPUT]
    Name   mem
    Tag    kernel

[OUTPUT]
    Name   stdout
    Match  *
```<commit_msg>Doc: input: update Mem plugin info<commit_after># Memory Usage

The __mem__ input plugin, gathers the information about the memory usage of the running system every certain interval of time and reports the total amount of memory and the amount of free available.

## Getting Started

In order to get memory usage from your system, you can run the plugin from the command line or through the configuration file:

### Command Line

```bash
$ bin/fluent-bit -i mem -t memory -o stdout -m '*'
Fluent-Bit v0.8.0
Copyright (C) Treasure Data

[0] memory: [1463544745, {"total"=>8081140, "free"=>2548704}]
[1] memory: [1463544746, {"total"=>8081140, "free"=>2560020}]
[2] memory: [1463544747, {"total"=>8081140, "free"=>2559616}]
[3] memory: [1463544748, {"total"=>8081140, "free"=>2559568}]
```

### Configuration File

In your main configuration file append the following _Input_ & _Output_ sections:

```python
[INPUT]
    Name   mem
    Tag    memory

[OUTPUT]
    Name   stdout
    Match  *
```
{'fraction_non_alphanumeric': 0.12136664966853646, 'fraction_numerical': 0.10504844467108618, 'mean_word_length': 4.573863636363637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5971412', 'n_tokens_mistral': 752, 'n_tokens_neox': 619, 'n_words': 247}