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
import requests as r | |
import time | |
import datetime | |
import random | |
URL='https://localhost:8088/services/collector/event' | |
HEADER = {'Authorization': 'Splunk {}'.format('bf70d86a-1138-4e0a-a372-6e7e6ee4775e')} | |
data_dict={} | |
data_dict["table_name"]="event_msg" |
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
#import snowflake connector module | |
import snowflake.connector | |
import sys | |
import os | |
# 確定輸入的參數是否給定正確 | |
# Sample: python connect_v1.py <account> <region> <user> <role> <warehouse> <database> <schema> | |
if len(sys.argv) < 8 : | |
print("ERROR: Please pass the following command-line parameters in order:",end='\n') | |
print("account,region,user,role,warehouse,database,schema.") |
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
#import snowflake connector module | |
import snowflake.connector | |
import sys | |
import os | |
# 確定輸入的參數是否給定正確 | |
# Sample: python connect_saml.py <account> <user> <role> <warehouse> <database> <schema> | |
if len(sys.argv) < 7 : | |
print("ERROR: Please pass the following command-line parameters in order:",end='\n') | |
print("account,user,role,warehouse,database,schema.") |
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
#import snowflake connector module | |
import snowflake.connector | |
import sys | |
import os | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives.asymmetric import rsa | |
from cryptography.hazmat.primitives.asymmetric import dsa | |
from cryptography.hazmat.primitives import serialization | |
# 確定輸入的參數是否給定正確 |
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
#import snowflake connector module | |
import snowflake.connector | |
import sys | |
import os | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives.asymmetric import rsa | |
from cryptography.hazmat.primitives.asymmetric import dsa | |
from cryptography.hazmat.primitives import serialization | |
# 確定輸入的參數是否給定正確 |
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
#import snowflake connector module | |
import snowflake.connector | |
import sys | |
import os | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives.asymmetric import rsa | |
from cryptography.hazmat.primitives.asymmetric import dsa | |
from cryptography.hazmat.primitives import serialization | |
# 確定輸入的參數是否給定正確 |
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
#import snowflake connector module | |
import snowflake.connector | |
import sys | |
import os | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives.asymmetric import rsa | |
from cryptography.hazmat.primitives.asymmetric import dsa | |
from cryptography.hazmat.primitives import serialization | |
# 確定輸入的參數是否給定正確 |
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
#import snowflake connector module | |
import snowflake.connector | |
import sys | |
import os | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives.asymmetric import rsa | |
from cryptography.hazmat.primitives.asymmetric import dsa | |
from cryptography.hazmat.primitives import serialization | |
# 確定輸入的參數是否給定正確 |
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
#import snowflake connector module | |
import snowflake.connector | |
import sys | |
import os | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives.asymmetric import rsa | |
from cryptography.hazmat.primitives.asymmetric import dsa | |
from cryptography.hazmat.primitives import serialization | |
# 確定輸入的參數是否給定正確 |
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
#import snowflake connector module | |
import snowflake.connector | |
import sys | |
import os | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives.asymmetric import rsa | |
from cryptography.hazmat.primitives.asymmetric import dsa | |
from cryptography.hazmat.primitives import serialization | |
# 確定輸入的參數是否給定正確 |
OlderNewer