mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 04:52:11 +00:00
tweak export script for new references
This commit is contained in:
parent
64729f5064
commit
2d249ac6b1
1 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,7 @@ trap fuCLEANUP EXIT
|
||||||
# Export index patterns
|
# Export index patterns
|
||||||
mkdir -p patterns
|
mkdir -p patterns
|
||||||
echo $myCOL1"### Now exporting"$myCOL0 $myINDEXCOUNT $myCOL1"index pattern fields." $myCOL0
|
echo $myCOL1"### Now exporting"$myCOL0 $myINDEXCOUNT $myCOL1"index pattern fields." $myCOL0
|
||||||
curl -s -XGET ''$myKIBANA'api/saved_objects/index-pattern/'$myINDEXID'' | jq '. | {attributes}' > patterns/$myINDEXID.json &
|
curl -s -XGET ''$myKIBANA'api/saved_objects/index-pattern/'$myINDEXID'' | jq '. | {attributes, references}' > patterns/$myINDEXID.json &
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Export dashboards
|
# Export dashboards
|
||||||
|
@ -41,7 +41,7 @@ echo $myCOL1"### Now exporting"$myCOL0 $(echo $myDASHBOARDS | wc -w) $myCOL1"das
|
||||||
for i in $myDASHBOARDS;
|
for i in $myDASHBOARDS;
|
||||||
do
|
do
|
||||||
echo $myCOL1"###### "$i $myCOL0
|
echo $myCOL1"###### "$i $myCOL0
|
||||||
curl -s -XGET ''$myKIBANA'api/saved_objects/dashboard/'$i'' | jq '. | {attributes}' > dashboards/$i.json &
|
curl -s -XGET ''$myKIBANA'api/saved_objects/dashboard/'$i'' | jq '. | {attributes, references}' > dashboards/$i.json &
|
||||||
done;
|
done;
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ echo $myCOL1"### Now exporting"$myCOL0 $(echo $myVISUALIZATIONS | wc -w) $myCOL1
|
||||||
for i in $myVISUALIZATIONS;
|
for i in $myVISUALIZATIONS;
|
||||||
do
|
do
|
||||||
echo $myCOL1"###### "$i $myCOL0
|
echo $myCOL1"###### "$i $myCOL0
|
||||||
curl -s -XGET ''$myKIBANA'api/saved_objects/visualization/'$i'' | jq '. | {attributes}' > visualizations/$i.json &
|
curl -s -XGET ''$myKIBANA'api/saved_objects/visualization/'$i'' | jq '. | {attributes, references}' > visualizations/$i.json &
|
||||||
done;
|
done;
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ echo $myCOL1"### Now exporting"$myCOL0 $(echo $mySEARCHES | wc -w) $myCOL1"searc
|
||||||
for i in $mySEARCHES;
|
for i in $mySEARCHES;
|
||||||
do
|
do
|
||||||
echo $myCOL1"###### "$i $myCOL0
|
echo $myCOL1"###### "$i $myCOL0
|
||||||
curl -s -XGET ''$myKIBANA'api/saved_objects/search/'$i'' | jq '. | {attributes}' > searches/$i.json &
|
curl -s -XGET ''$myKIBANA'api/saved_objects/search/'$i'' | jq '. | {attributes, references}' > searches/$i.json &
|
||||||
done;
|
done;
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue