Elastic¶
This documentation provides details about the data that can be faked for Elastic.
To retrieve generated/fake data for Elastic see the following capabilities:
from socfaker import SocFaker
sc = SocFaker()
print(sc.products.elastic.hits(count=1))
print(sc.products.elastic.document(count=1))
Elastic Class¶
-
class
socfaker.elastichits.
ElasticHits
¶ Fake’s Elastic Search Hits from Windows Event Data
Example Usage:
hits = ElasticHits() print(hits.get(count=15))-
get
(count=10)¶ The get method is the main method to retrieve a specified count (default of 10) of Elasticsearch hits
- Args:
- count (int, optional): The number of hits to return. Defaults to 10.
- Returns:
- list: Returns a list of elasticsearch query hits
-
get_log_level
(value)¶
-