# Element: examples

## Location

/[patterndb](../../../../../docs/axosyslog-core/chapter-parsers/chapter-patterndb/reference-parsers-pattern-databases/reference-patterndb-schemes/patterndb-scheme-patterndb/index.md)/[ruleset](../../../../../docs/axosyslog-core/chapter-parsers/chapter-patterndb/reference-parsers-pattern-databases/reference-patterndb-schemes/patterndb-scheme-ruleset/index.md)/[rules](../../../../../docs/axosyslog-core/chapter-parsers/chapter-patterndb/reference-parsers-pattern-databases/reference-patterndb-schemes/patterndb-scheme-rules/index.md)/[rule](../../../../../docs/axosyslog-core/chapter-parsers/chapter-patterndb/reference-parsers-pattern-databases/reference-patterndb-schemes/patterndb-scheme-rule/index.md)/[patterns](../../../../../docs/axosyslog-core/chapter-parsers/chapter-patterndb/reference-parsers-pattern-databases/reference-patterndb-schemes/patterndb-scheme-patterns2/index.md)/_examples_

## Description

OPTIONAL — A container element for sample log messages that should be recognized by the pattern. These messages can be used also to test the patterns and the parsers.

## Attributes

N/A

## Children

  * _example_



## Example
```
       <examples>
            <example>
                <test_message>Accepted password for sampleuser from 10.50.0.247 port 42156 ssh2</test_message>
                <test_values>
                    <test_value name="SSH.AUTH_METHOD">password</test_value>
                    <test_value name="SSH_USERNAME">sampleuser</test_value>
                    <test_value name="SSH_CLIENT_ADDRESS">10.50.0.247</test_value>
                    <test_value name="SSH_PORT_NUMBER">42156</test_value>
                </test_values>
            </example>
        </examples>
    
```

Last modified July 15, 2023: [Patterndb chapter formatting fixes (f7dfdaa)](<https://github.com/axoflow/axosyslog-core-docs/commit/f7dfdaa0fa045e2ae66345dc5a1c70a179726476>)