Created
March 1, 2019 21:55
-
-
Save Zeerg/5d18ff0b2fe1b21d9f88e5c8ae02e450 to your computer and use it in GitHub Desktop.
A lambda to convert a json object to a sumologic field extraction rule.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
json_body = {} | |
print(*map(lambda x: f"| parse \"{x}\\\":\\\"*\\\"\" as {x}\n", json_body)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment