es4forensics 0.5.1

Import several timelines into elasticsearch
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::env;

pub fn username_from_env() -> String {
    match env::var("E4F_USER") {
        Ok(s) => s,
        Err(_) => "elastic".to_owned()
    }
}

pub fn password_from_env() -> String {
    match env::var("E4F_PASSWORD") {
        Ok(s) => s,
        Err(_) => panic!("You need to set E4F_PASSWORD")
    }
}