<commit_before>output {
    if [fields][apache_log_type] == "access_log" {
        elasticsearch {
		hosts => [
			"esnode1.internal.softwareheritage.org:9200",
			"esnode2.internal.softwareheritage.org:9200"
		]
                index => "apache_logs-%{+YYYY.MM.dd}"
	}
    } else if "swh-worker@" in [systemd_unit] {
        elasticsearch {
		hosts => [
			"esnode1.internal.softwareheritage.org:9200",
			"esnode2.internal.softwareheritage.org:9200"
		]
                index => "swh_workers-%{+YYYY.MM.dd}"
        }
    } else {
        elasticsearch {
		hosts => [
			"esnode1.internal.softwareheritage.org:9200",
			"esnode2.internal.softwareheritage.org:9200"
		]
                index => "systemlogs-%{+YYYY.MM.dd}"<commit_msg>Add esnode3 to logstash config<commit_after>output {
    if [fields][apache_log_type] == "access_log" {
        elasticsearch {
                hosts => [
                        "esnode1.internal.softwareheritage.org:9200",
                        "esnode2.internal.softwareheritage.org:9200",
                        "esnode3.internal.softwareheritage.org:9200"
                ]
                index => "apache_logs-%{+YYYY.MM.dd}"
        }
    } else if "swh-worker@" in [systemd_unit] {
        elasticsearch {
                hosts => [
                        "esnode1.internal.softwareheritage.org:9200",
                        "esnode2.internal.softwareheritage.org:9200",
                        "esnode3.internal.softwareheritage.org:9200"
                ]
                index => "swh_workers-%{+YYYY.MM.dd}"
        }
    } else {
        elasticsearch {
                hosts => [
                        "esnode1.internal.softwareheritage.org:9200",
                        "esnode2.internal.softwareheritage.org:9200",
                        "esnode3.internal.softwareheritage.org:9200"
                ]
                index => "systemlogs-%{+YYYY.MM.dd}"
{'fraction_non_alphanumeric': 0.12800417972831765, 'fraction_numerical': 0.03970741901776385, 'mean_word_length': 1.6971830985915493, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '5996896', 'n_tokens_mistral': 672, 'n_tokens_neox': 582, 'n_words': 62}