<commit_before># Into
Allows $token$ replacement with field values

# Disclamer
Command should be treated as prototype/example. Has not been fully tested, no logging exists.

# Usage
```
 | localop | stats count

 | eval rule_title="hello $name$", rule_description="this means $name$, is $value$"
 | eval name="vladimir", value="awesome"

 | replacetokens fields="rule_title,rule_description"
```

OR

```
index="notable"

| lookup update=true correlationsearches_lookup _key as source OUTPUTNEW security_domain, severity, rule_name, description as savedsearch_description, rule_title, rule_description, drilldown_name, drilldown_search, drilldown_earliest_offset, drilldown_latest_offset, default_status, default_owner, next_steps, recommended_actions

| replacetokens fields="rule_title,rule_description"
```

# Screenshot
![SA-token_replacement_overview](https://raw.githubusercontent.com/hire-vladimir/SA-token_replacement/master/static/screenshot.png)<commit_msg>i can't spell<commit_after># Into
Allows $token$ replacement with field values

# Disclaimer
Command should be treated as prototype/example. Has not been fully tested, no logging exists.

# Usage
```
 | localop | stats count

 | eval rule_title="hello $name$", rule_description="this means $name$, is $value$"
 | eval name="vladimir", value="awesome"

 | replacetokens fields="rule_title,rule_description"
```

OR

```
index="notable"

| lookup update=true correlationsearches_lookup _key as source OUTPUTNEW security_domain, severity, rule_name, description as savedsearch_description, rule_title, rule_description, drilldown_name, drilldown_search, drilldown_earliest_offset, drilldown_latest_offset, default_status, default_owner, next_steps, recommended_actions

| replacetokens fields="rule_title,rule_description"
```

# Screenshot
![SA-token_replacement_overview](https://raw.githubusercontent.com/hire-vladimir/SA-token_replacement/master/static/screenshot.png)
{'fraction_non_alphanumeric': 0.10067114093959731, 'fraction_numerical': 0.0, 'mean_word_length': 7.613333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1579869', 'n_tokens_mistral': 608, 'n_tokens_neox': 583, 'n_words': 139}