Good source of Crawler / Spider IP addresses - ip
Where could I find comprehensive list of Crawler or Spider IP address. I need IPs from google yahoo microsoft and other search engines that regularly crawl my sites.
I do not want to disable them so keep robots.txt file out of the answers. The list is for filter that is doing statistical reporting on activity on each page.
Please post links to good sources that could be used. Paid or free.
Your web server logs. I believe they're free.
You probably don't want to do this by IP address. Most crawlers send a unique user agent string when they crawl your site and it's much more likely you want to use that to identify them. I don't know where you can find a good list of those though
EDIT: Actually this page I found with google seems to both answer your question a bit, and also give the user agents (which is still more likely a better approach)
>> Updated list <<
List as at Jan 16, 2016
[
{
"pattern": "googlebot\\/",
"url": "http://www.google.com/bot.html"
},
{
"pattern": "Googlebot-Mobile"
},
{
"pattern": "Googlebot-Image"
},
{
"pattern": "Mediapartners-Google",
"url": "https://support.google.com/webmasters/answer/1061943?hl=en"
},
{
"pattern": "bingbot",
"url": "http://www.bing.com/bingbot.htm"
},
{
"pattern": "slurp",
"url": "http://help.yahoo.com/help/us/ysearch/slurp"
},
{
"pattern": "java"
},
{
"pattern": "wget"
},
{
"pattern": "curl"
},
{
"pattern": "Commons-HttpClient"
},
{
"pattern": "Python-urllib"
},
{
"pattern": "libwww"
},
{
"pattern": "httpunit"
},
{
"pattern": "nutch"
},
{
"pattern": "phpcrawl",
"addition_date": "2012-09/17",
"url": "http://phpcrawl.cuab.de/"
},
{
"pattern": "msnbot",
"url": "http://search.msn.com/msnbot.htm"
},
{
"pattern": "jyxobot"
},
{
"pattern": "FAST-WebCrawler"
},
{
"pattern": "FAST Enterprise Crawler"
},
{
"pattern": "biglotron"
},
{
"pattern": "teoma"
},
{
"pattern": "convera"
},
{
"pattern": "seekbot"
},
{
"pattern": "gigablast",
"instances": ["Gigabot/2.0 (http://www.gigablast.com/spider.html)", "Gigabot/2.0 (http://www.gigablast.com/spider.html)", "GigablastOpenSource/1.0"],
"url": "https://github.com/gigablast/open-source-search-engine"
},
{
"pattern": "exabot"
},
{
"pattern": "ngbot"
},
{
"pattern": "ia_archiver"
},
{
"pattern": "GingerCrawler"
},
{
"pattern": "webmon "
},
{
"pattern": "httrack"
},
{
"pattern": "webcrawler"
},
{
"pattern": "grub.org"
},
{
"pattern": "UsineNouvelleCrawler"
},
{
"pattern": "antibot"
},
{
"pattern": "netresearchserver"
},
{
"pattern": "speedy"
},
{
"pattern": "fluffy"
},
{
"pattern": "bibnum.bnf"
},
{
"pattern": "findlink"
},
{
"pattern": "msrbot"
},
{
"pattern": "panscient"
},
{
"pattern": "yacybot"
},
{
"pattern": "AISearchBot"
},
{
"pattern": "IOI"
},
{
"pattern": "ips-agent"
},
{
"pattern": "tagoobot"
},
{
"pattern": "MJ12bot"
},
{
"pattern": "dotbot"
},
{
"pattern": "woriobot"
},
{
"pattern": "yanga"
},
{
"pattern": "buzzbot"
},
{
"pattern": "mlbot"
},
{
"pattern": "yandexbot",
"url": "http://yandex.com/bots",
"instances": ["Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)"],
"addition_date": "2015/04/14"
},
{
"pattern": "purebot",
"addition_date": "2010/01/19"
},
{
"pattern": "Linguee Bot",
"addition_date": "2010/01/26",
"url": "http://www.linguee.com/bot"
},
{
"pattern": "Voyager",
"addition_date": "2010/02/01",
"url": "http://www.kosmix.com/crawler.html"
},
{
"pattern": "CyberPatrol",
"addition_date": "2010/02/11",
"url": "http://www.cyberpatrol.com/cyberpatrolcrawler.asp"
},
{
"pattern": "voilabot",
"addition_date": "2010/05/18"
},
{
"pattern": "baiduspider",
"addition_date": "2010/07/15",
"url": "http://www.baidu.jp/spider/"
},
{
"pattern": "citeseerxbot",
"addition_date": "2010/07/17"
},
{
"pattern": "spbot",
"addition_date": "2010/07/31",
"url": "http://www.seoprofiler.com/bot"
},
{
"pattern": "twengabot",
"addition_date": "2010/08/03",
"url": "http://www.twenga.com/bot.html"
},
{
"pattern": "postrank",
"addition_date": "2010/08/03",
"url": "http://www.postrank.com"
},
{
"pattern": "turnitinbot",
"addition_date": "2010/09/26",
"url": "http://www.turnitin.com"
},
{
"pattern": "scribdbot",
"addition_date": "2010/09/28",
"url": "http://www.scribd.com"
},
{
"pattern": "page2rss",
"addition_date": "2010/10/07",
"url": "http://www.page2rss.com"
},
{
"pattern": "sitebot",
"addition_date": "2010/12/15",
"url": "http://www.sitebot.org"
},
{
"pattern": "linkdex",
"addition_date": "2011/01/06",
"url": "http://www.linkdex.com"
},
{
"pattern": "Adidxbot",
"url": "http://onlinehelp.microsoft.com/en-us/bing/hh204496.aspx"
},
{
"pattern": "blekkobot",
"url": "http://blekko.com/about/blekkobot"
},
{
"pattern": "ezooms",
"addition_date": "2011/04/27",
"url": "http://www.phpbb.com/community/viewtopic.php?f=64&t=935605&start=450#p12948289"
},
{
"pattern": "dotbot",
"addition_date": "2011/04/27"
},
{
"pattern": "Mail.RU_Bot",
"addition_date": "2011/04/27",
"instances" : [
"Mozilla/5.0 (compatible; Linux x86_64; Mail.RU_Bot/2.0; +http://go.mail.ru/",
"Mozilla/5.0 (compatible; Mail.RU_Bot/2.0; +http://go.mail.ru/"
]
},
{
"pattern": "discobot",
"addition_date": "2011/05/03",
"url": "http://discoveryengine.com/discobot.html"
},
{
"pattern": "heritrix",
"addition_date": "2011/06/21",
"url": "http://crawler.archive.org/"
},
{
"pattern": "findthatfile",
"addition_date": "2011/06/21",
"url": "http://www.findthatfile.com/"
},
{
"pattern": "europarchive.org",
"addition_date": "2011/06/21",
"url": ""
},
{
"pattern": "NerdByNature.Bot",
"addition_date": "2011/07/12",
"url": "http://www.nerdbynature.net/bot"
},
{
"pattern": "sistrix crawler",
"addition_date": "2011/08/02"
},
{
"pattern": "ahrefsbot",
"addition_date": "2011/08/28"
},
{
"pattern": "Aboundex",
"addition_date": "2011/09/28",
"url": "http://www.aboundex.com/crawler/"
},
{
"pattern": "domaincrawler",
"addition_date": "2011/10/21"
},
{
"pattern": "wbsearchbot",
"addition_date": "2011/12/21",
"url": "http://www.warebay.com/bot.html"
},
{
"pattern": "summify",
"addition_date": "2012/01/04",
"url": "http://summify.com"
},
{
"pattern": "ccbot",
"addition_date": "2012/02/05",
"url": "http://www.commoncrawl.org/bot.html"
},
{
"pattern": "edisterbot",
"addition_date": "2012/02/25"
},
{
"pattern": "seznambot",
"addition_date": "2012/03/14"
},
{
"pattern": "ec2linkfinder",
"addition_date": "2012/03/22"
},
{
"pattern": "gslfbot",
"addition_date": "2012/04/03"
},
{
"pattern": "aihitbot",
"addition_date": "2012/04/16"
},
{
"pattern": "intelium_bot",
"addition_date": "2012/05/07"
},
{
"pattern": "facebookexternalhit",
"addition_date": "2012/05/07"
},
{
"pattern": "yeti",
"addition_date": "2012/05/07"
},
{
"pattern": "RetrevoPageAnalyzer",
"addition_date": "2012/05/07"
},
{
"pattern": "lb-spider",
"addition_date": "2012/05/07"
},
{
"pattern": "sogou",
"addition_date": "2012/05/13",
"url": "http://www.sogou.com/docs/help/webmasters.htm#07"
},
{
"pattern": "lssbot",
"addition_date": "2012/05/15"
},
{
"pattern": "careerbot",
"addition_date": "2012/05/23",
"url": "http://www.career-x.de/bot.html"
},
{
"pattern": "wotbox",
"addition_date": "2012/06/12",
"url": "http://www.wotbox.com"
},
{
"pattern": "wocbot",
"addition_date": "2012/07/25",
"url": "http://www.wocodi.com/crawler"
},
{
"pattern": "ichiro",
"addition_date": "2012/08/28",
"url": "http://help.goo.ne.jp/help/article/1142"
},
{
"pattern": "DuckDuckBot",
"addition_date": "2012/09/19",
"url": "http://duckduckgo.com/duckduckbot.html"
},
{
"pattern": "lssrocketcrawler",
"addition_date": "2012/09/24"
},
{
"pattern": "drupact",
"addition_date": "2012/09/27",
"url": "http://www.arocom.de/drupact"
},
{
"pattern": "webcompanycrawler",
"addition_date": "2012/10/03"
},
{
"pattern": "acoonbot",
"addition_date": "2012/10/07",
"url": "http://www.acoon.de/robot.asp"
},
{
"pattern": "openindexspider",
"addition_date": "2012/10/26",
"url": "http://www.openindex.io/en/webmasters/spider.html"
},
{
"pattern": "gnam gnam spider",
"addition_date": "2012/10/31"
},
{
"pattern": "web-archive-net.com.bot"
},
{
"pattern": "backlinkcrawler",
"addition_date": "2013/01/04"
},
{
"pattern": "coccoc",
"addition_date": "2013/01/04",
"url": "http://help.coccoc.vn/"
},
{
"pattern": "integromedb",
"addition_date": "2013/01/10",
"url": "http://www.integromedb.org/Crawler"
},
{
"pattern": "content crawler spider",
"addition_date": "2013/01/11"
},
{
"pattern": "toplistbot",
"addition_date": "2013/02/05"
},
{
"pattern": "seokicks-robot",
"addition_date": "2013/02/25"
},
{
"pattern": "it2media-domain-crawler",
"addition_date": "2013/03/12"
},
{
"pattern": "ip-web-crawler.com",
"addition_date": "2013/03/22"
},
{
"pattern": "siteexplorer.info",
"addition_date": "2013/05/01"
},
{
"pattern": "elisabot",
"addition_date": "2013/06/27"
},
{
"pattern": "proximic",
"addition_date": "2013/09/12",
"url": "http://www.proximic.com/info/spider.php"
},
{
"pattern": "changedetection",
"addition_date": "2013/09/13",
"url": "http://www.changedetection.com/bot.html"
},
{
"pattern": "blexbot",
"addition_date": "2013/10/03",
"url": "http://webmeup-crawler.com/"
},
{
"pattern": "arabot",
"addition_date": "2013/10/09"
},
{
"pattern": "WeSEE:Search",
"addition_date": "2013/11/18"
},
{
"pattern": "niki-bot",
"addition_date": "2014/01/01"
},
{
"pattern": "CrystalSemanticsBot",
"addition_date": "2014/02/17",
"url": "http://www.crystalsemantics.com/user-agent/"
},
{
"pattern": "rogerbot",
"addition_date": "2014/02/28",
"url": "http://moz.com/help/pro/what-is-rogerbot-"
},
{
"pattern": "360Spider",
"addition_date": "2014/03/14",
"url": "http://needs-be.blogspot.co.uk/2013/02/how-to-block-spider360.html"
},
{
"pattern": "psbot",
"addition_date": "2014/03/31",
"url": "http://www.picsearch.com/bot.html"
},
{
"pattern": "InterfaxScanBot",
"addition_date": "2014/03/31",
"url": "http://scan-interfax.ru"
},
{
"pattern": "Lipperhey SEO Service",
"addition_date": "2014/04/01",
"url": "http://www.lipperhey.com/"
},
{
"pattern": "CC Metadata Scaper",
"addition_date": "2014/04/01",
"url": "http://wiki.creativecommons.org/Metadata_Scraper"
},
{
"pattern": "g00g1e.net",
"addition_date": "2014/04/01",
"url": "http://www.g00g1e.net/"
},
{
"pattern": "GrapeshotCrawler",
"addition_date": "2014/04/01",
"url": "http://www.grapeshot.co.uk/crawler.php"
},
{
"pattern": "urlappendbot",
"addition_date": "2014/05/10",
"url": "http://www.profound.net/urlappendbot.html"
},
{
"pattern": "brainobot",
"addition_date": "2014/06/24"
},
{
"pattern": "fr-crawler",
"addition_date": "2014/07/31",
"instances": ["Mozilla/5.0 (compatible; fr-crawler/1.1)"]
},
{
"pattern": "binlar",
"addition_date": "2014/09/12",
"instances": [
"binlar_2.6.3 binlar2.6.3#unspecified.mail",
"binlar_2.6.3 binlar_2.6.3#unspecified.mail",
"binlar_2.6.3 larbin2.6.3#unspecified.mail",
"binlar_2.6.3 phanendra_kalapala#McAfee.com",
"binlar_2.6.3 test#mgmt.mic"
]
},
{
"pattern": "SimpleCrawler",
"addition_date": "2014/09/12",
"instances": ["SimpleCrawler/0.1" ]
},
{
"pattern": "Livelapbot",
"addition_date": "2014/09/12",
"instances": ["Livelapbot/0.1" ]
},
{
"pattern": "Twitterbot",
"addition_date": "2014/09/12",
"instances": ["Twitterbot/0.1", "Twitterbot/1.0" ]
},
{
"pattern": "cXensebot",
"addition_date": "2014/10/05",
"instances": ["cXensebot/1.1a"],
"url": "http://www.cxense.com/bot.html"
},
{
"pattern": "smtbot",
"addition_date": "2014/10/04",
"instances": ["Mozilla/5.0 (compatible; SMTBot/1.0; +http://www.similartech.com/smtbo)t", "SMTBot (similartech.com/smtbot)"],
"url": "http://www.similartech.com/smtbot"
},
{
"pattern": "bnf.fr_bot",
"addition_date": "2014/11/18",
"url": "http://www.bnf.fr/fr/outils/a.dl_web_capture_robot.html",
"instances": ["Mozilla/5.0 (compatible; bnf.fr_bot; +http://www.bnf.fr/fr/outils/a.dl_web_capture_robot.html)"]
},
{
"pattern": "A6-Indexer",
"addition_date": "2014/12/05",
"url": "http://www.a6corp.com/a6-web-scraping-policy/",
"instances": ["A6-Indexer"]
},
{
"pattern": "ADmantX",
"addition_date": "2014/12/05",
"url": "http://www.admantx.com",
"instances": ["ADmantX Platform Semantic Analyzer - ADmantX Inc. - www.admantx.com - support#admantx.com"]
},
{
"pattern": "Facebot",
"url": "https://developers.facebook.com/docs/sharing/best-practices#crawl",
"addition_date": "2014/12/30"
},
{
"pattern": "Twitterbot",
"url": "https://dev.twitter.com/cards/getting-started",
"addition_date": "2014/12/30"
},
{
"pattern": "OrangeBot",
"instances": ["Mozilla/5.0 (compatible; OrangeBot/2.0; support.orangebot#orange.com"],
"addition_date": "2015/01/12"
},
{
"pattern": "memorybot",
"url": "http://mignify.com/bot.htm",
"instances": ["Mozilla/5.0 (compatible; memorybot/1.21.14 +http://mignify.com/bot.html)"],
"addition_date": "2015/02/01"
},
{
"pattern": "AdvBot",
"url": "http://advbot.net/bot.html",
"instances": ["Mozilla/5.0 (compatible; AdvBot/2.0; +http://advbot.net/bot.html)"],
"addition_date": "2015/02/01"
},
{
"pattern": "MegaIndex",
"url": "https://www.megaindex.ru/?tab=linkAnalyze",
"instances": ["Mozilla/5.0 (compatible; MegaIndex.ru/2.0; +https://www.megaindex.ru/?tab=linkAnalyze)"],
"addition_date": "2015/03/28"
},
{
"pattern": "SemanticScholarBot",
"url": "http://s2.allenai.org/bot.html",
"instances": ["SemanticScholarBot/1.0 (+http://s2.allenai.org/bot.html)"],
"addition_date": "2015/03/28"
},
{
"pattern": "ltx71",
"url": "http://ltx71.com/",
"instances": ["ltx71 - (http://ltx71.com/)"],
"addition_date": "2015/04/04"
},
{
"pattern": "nerdybot",
"url": "http://nerdybot.com/",
"instances": ["nerdybot"],
"addition_date": "2015/04/05"
},
{
"pattern": "xovibot",
"url": "http://www.xovibot.net/",
"instances": ["Mozilla/5.0 (compatible; XoviBot/2.0; +http://www.xovibot.net/)"],
"addition_date": "2015/04/05"
},
{
"pattern": "BUbiNG",
"url": "http://law.di.unimi.it/BUbiNG.html",
"instances": ["BUbiNG (+http://law.di.unimi.it/BUbiNG.html)"],
"addition_date": "2015/04/06"
},
{
"pattern": "Qwantify",
"url": "https://www.qwant.com/",
"instances": ["Mozilla/5.0 (compatible; Qwantify/2.0n; +https://www.qwant.com/)/*"],
"addition_date": "2015/04/06"
},
{
"pattern": "archive.org_bot",
"url": "http://www.archive.org/details/archive.org_bot",
"instances": ["Mozilla/5.0 (compatible; archive.org_bot +http://www.archive.org/details/archive.org_bot)"],
"addition_date": "2015/04/14"
},
{
"pattern": "Applebot",
"url": "http://www.apple.com/go/applebot",
"addition_date": "2015/04/15"
},
{
"pattern": "TweetmemeBot",
"url": "http://datasift.com/bot.html",
"instances": ["Mozilla/5.0 (TweetmemeBot/4.0; +http://datasift.com/bot.html) Gecko/20100101 Firefox/31.0"],
"addition_date": "2015/04/15"
},
{
"pattern": "crawler4j",
"url": "https://github.com/yasserg/crawler4j",
"instances": ["crawler4j (http://code.google.com/p/crawler4j/)"],
"addition_date": "2015/05/07"
},
{
"pattern": "findxbot",
"url": "http://www.findxbot.com",
"instances": ["Mozilla/5.0 (compatible; Findxbot/1.0; +http://www.findxbot.com)"],
"addition_date": "2015/05/07"
},
{
"pattern": "SemrushBot",
"url": "http://www.semrush.com/bot.html",
"instances": ["Mozilla/5.0 (compatible; SemrushBot/0.98~bl; +http://www.semrush.com/bot.html)"],
"addition_date": "2015/05/26"
},
{
"pattern": "yoozBot",
"url": "http://yooz.ir",
"instances": ["Mozilla/5.0 (compatible; yoozBot-2.2; http://yooz.ir; info#yooz.ir)"],
"addition_date": "2015/05/26"
},
{
"pattern": "lipperhey",
"url": "http://www.lipperhey.com/",
"instances": ["Mozilla/5.0 (compatible; Lipperhey Link Explorer; http://www.lipperhey.com/)", "Mozilla/5.0 (compatible; Lipperhey SEO Service; http://www.lipperhey.com/)", "Mozilla/5.0 (compatible; Lipperhey Site Explorer; http://www.lipperhey.com/)", "Mozilla/5.0 (compatible; Lipperhey-Kaus-Australis/5.0; +https://www.lipperhey.com/en/about/)"],
"addition_date": "2015/08/26"
},
{
"pattern": "y!j-asr",
"url": "http://www.yahoo-help.jp/app/answers/detail/p/595/a_id/42716/",
"instances": ["Y!J-ASR/0.1 crawler (http://www.yahoo-help.jp/app/answers/detail/p/595/a_id/42716/)"],
"addition_date": "2015/05/26"
},
{
"pattern": "Domain Re-Animator Bot",
"url": "http://domainreanimator.com",
"instances": ["Domain Re-Animator Bot (http://domainreanimator.com) - support#domainreanimator.com"],
"addition_date": "2015/04/14"
},
{
"pattern": "AddThis",
"url": "https://www.addthis.com",
"instances": ["AddThis.com robot tech.support#clearspring.com"],
"addition_date": "2015/06/02"
},
{
"pattern": "Screaming Frog SEO Spider",
"url": "http://www.screamingfrog.co.uk/seo-spider",
"instances": ["Screaming Frog SEO Spider/5.1"],
"addition_date": "2016/01/08"
},
{
"pattern": "MetaURI",
"url": "http://www.useragentstring.com/MetaURI_id_17683.php",
"instances": ["MetaURI API/2.0 +metauri.com"],
"addition_date": "2016/01/02"
},
{
"pattern": "Scrapy",
"url": "http://scrapy.org/",
"instances": ["Scrapy/1.0.3 (+http://scrapy.org)"],
"addition_date": "2016/01/02"
},
{
"pattern": "LivelapBot",
"url": "http://site.livelap.com/crawler",
"instances": ["LivelapBot/0.2 (http://site.livelap.com/crawler)"],
"addition_date": "2016/01/02"
},
{
"pattern": "OpenHoseBot",
"url": "http://www.openhose.org/bot.html",
"instances": ["Mozilla/5.0 (compatible; OpenHoseBot/2.1; +http://www.openhose.org/bot.html)"],
"addition_date": "2016/01/02"
},
{
"pattern": "CapsuleChecker",
"url": "http://www.capsulink.com/about",
"instances": ["CapsuleChecker (http://www.capsulink.com/)"],
"addition_date": "2016/01/02"
},
{
"pattern": "collection#infegy.com",
"url": "http://infegy.com/",
"instances": ["Mozilla/5.0 (compatible) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36 collection#infegy.com"],
"addition_date": "2016/01/03"
},
{
"pattern": "IstellaBot",
"url": "http://www.tiscali.it/",
"instances": ["Mozilla/5.0 (compatible; IstellaBot/1.23.15 +http://www.tiscali.it/)"],
"addition_date": "2016/01/09"
}
]
It's not a trivial matter to know the legitimate IPs of web search engines. User agents can be easily spoofed. The best you can do is go through logs manually and observe their behavior. IPs can also change over time and even be spoofed for certain malicious intent.
Shodan.IO bot ip addresses found are
198.20.69.72 - 198.20.69.79
198.20.69.96 - 198.20.69.103
I'm sure there may be other addresses in use, but these are the ones I found with a little digging...
Related
Gatling jsonpath, save value
I have a json response I want to obtain a value from looking like this: { "resourceType": "Parameters", "parameter": [ { "name": "medication", "resource": { "resourceType": "Bundle", "id": "cfa4fa3c-0e34-431c-ac0d-91653ebda972", "meta": { "lastUpdated": "2022-09-23T11:37:49.6022504+02:00", "source": "http://xxx.xxx/Patient/$getMedication", "profile": [ "http://xxxStructureDefinition/sfm-MedicationBundle" ] }, "type": "document", "timestamp": "2022-09-23T11:37:49.6022471+02:00", "total": 6, "link": [ { "relation": "self", "url": "http://xxx/Patient/$getMedication" } ], "entry": [ { "fullUrl": "urn:uuid:fbb2bd18-a1c3-4f95-8384-d520fba283a5", "resource": { "resourceType": "Composition", "id": "dfc4f003-4eb6-4802-8b8a-d2d53cf7698c", "meta": { "profile": [ "http://xxx/StructureDefinition/sfm-MedicationComposition" ] }, "identifier": { "use": "official", "value": "28c2ae8d-39ed-4054-af46-22bc8c2c1e4a" }, "status": "final", "type": { "coding": [ { "system": "http://loinc.org", "code": "11503-0", "display": "Medical records" } ] }, "subject": { "reference": "urn:uuid:67bb77c3-55dc-4643-b334-7f95e38bcf2f", "type": "http://xxx/StructureDefinition/sfm-Patient", "display": "Patient 05129997836" }, "date": "2022-09-23", "author": [ { "reference": "urn:uuid:a443c8b2-a45a-4bad-baa6-f38904363673", "type": "http://xxx/StructureDefinition/sfm-Practitioner", "display": "xxx xxx, HPR: xxx" } ], "title": "Medication summary", "confidentiality": "N", "section": [ { "title": "Medication", "code": { "coding": [ { "system": "http://xxx/CodeSystem/sfm-section-types", "code": "sectionMedication", "display": "List of Medication statements" } ] }, "text": { "status": "generated", "div": "<xhtml:div xmlns:xhtml=\"http://www.w3.org/1999/xhtml\">List of medications</xhtml:div>" }, "entry": [ { "reference": "urn:uuid:8c714f72-0c90-403d-9e80-b08c61f82068", "type": "http://xxx/fhir/StructureDefinition/sfm-MedicationStatement", "display": "Paracetamol tab 1 g" } ] }, { "title": "PllInfo", "code": { "coding": [ { "system": "http://xxx/fhir/CodeSystem/sfm-section-types", "code": "sectionPLLinfo", "display": "PLL Info" } ] }, "text": { "status": "generated", "div": "<xhtml:div xmlns:xhtml=\"http://www.w3.org/1999/xhtml\">Nil Known</xhtml:div>" }, "emptyReason": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/list-empty-reason", "code": "nilknown", "display": "Nil Known" } ], "text": "Nil Known" } }, { "title": "Allergies", "code": { "coding": [ { "system": "http://xxx/fhir/CodeSystem/sfm-section-types", "code": "sectionAllergies", "display": "Section allergies" } ] }, "text": { "status": "generated", "div": "<xhtml:div xmlns:xhtml=\"http://www.w3.org/1999/xhtml\">Nil Known</xhtml:div>" }, "emptyReason": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/list-empty-reason", "code": "nilknown", "display": "Nil Known" } ], "text": "Nil Known" } }, { "title": "Other Prescriptions", "code": { "coding": [ { "system": "http://xxx/fhir/CodeSystem/sfm-section-types", "code": "sectionOtherPrescriptions", "display": "List of non medical prescriptions" } ] }, "text": { "status": "generated", "div": "<xhtml:div xmlns:xhtml=\"http://www.w3.org/1999/xhtml\">Nil Known</xhtml:div>" }, "emptyReason": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/list-empty-reason", "code": "nilknown", "display": "Nil Known" } ], "text": "Nil Known" } } ] } }, { "fullUrl": "urn:uuid:a443c8b2-a45a-4bad-baa6-f38904363673", "resource": { "resourceType": "Practitioner", "id": "1571880245", "meta": { "profile": [ "http://xxx/fhir/StructureDefinition/sfm-Practitioner" ] }, "identifier": [ { "use": "official", "type": { "coding": [ { "system": "http://hl7.no/fhir/NamingSystem/HPR", "code": "HPR-nummer" } ] }, "system": "urn:oid:2.16.578.1.12.4.1.4.4", "value": "10055817" }, { "use": "official", "type": { "coding": [ { "system": "http://hl7.no/fhir/NamingSystem/FNR", "code": "FNR-nummer" } ] }, "system": "urn:oid:2.16.578.1.12.4.1.4.1", "value": "10099205569" } ], "active": true, "name": [ { "use": "official", "family": "xxx", "given": [ "xxx" ] } ], "gender": "male", "birthDate": "1992-09-10" } }, { "fullUrl": "urn:uuid:67bb77c3-55dc-4643-b334-7f95e38bcf2f", "resource": { "resourceType": "Patient", "id": "873788333", "meta": { "profile": [ "http://xxx/fhir/StructureDefinition/sfm-Patient" ] }, "identifier": [ { "use": "official", "type": { "coding": [ { "system": "http://hl7.no/fhir/NamingSystem/FNR", "code": "FNR-nummer" } ] }, "system": "urn:oid:2.16.578.1.12.4.1.4.1", "value": "05129997836" } ], "active": true, "name": [ { "family": "05129997836", "given": [ "Patient" ] } ], "gender": "female", "birthDate": "1999-12-05", "address": [ { "type": "postal", "text": "Autoveien 1", "city": "Oslo", "postalCode": "0150" } ] } }, { "fullUrl": "urn:uuid:f4c95e15-8e9f-416a-83c7-3a6847d69278", "resource": { "resourceType": "Practitioner", "id": "1215535826", "meta": { "profile": [ "http://xxx/fhir/StructureDefinition/sfm-Practitioner" ] }, "identifier": [ { "use": "official", "type": { "coding": [ { "system": "http://hl7.no/fhir/NamingSystem/HPR", "code": "HPR-nummer" } ] }, "system": "urn:oid:2.16.578.1.12.4.1.4.4", "value": "1010038" } ], "active": true, "name": [ { "extension": [ { "url": "http://hl7.no/fhir/StructureDefinition/no-basis-middlename", "valueString": "Psa" } ], "use": "official", "family": "xx", "given": [ "xx" ] } ], "gender": "male" } }, { "fullUrl": "urn:uuid:4b4de0ae-3f2d-4030-a193-26713cf30260", "resource": { "resourceType": "Medication", "id": "667718723", "meta": { "profile": [ "http://xxx/fhir/StructureDefinition/sfm-Medication" ] }, "extension": [ { "extension": [ { "url": "prescriptiongroup", "valueCodeableConcept": { "coding": [ { "system": "urn:oid:2.16.578.1.12.4.1.1.7421", "code": "C", "display": "Reseptgruppe C" } ] } } ], "url": "http://hl7.no/fhir/StructureDefinition/no-basis-prescriptiongroup" }, { "extension": [ { "url": "registreringstype", "valueCodeableConcept": { "coding": [ { "system": "http://xxx/fhir/CodeSystem/sfm-festregistrationtype", "code": "1", "display": "Legemiddelvirkestoff" } ] } } ], "url": "http://xxx/fhir/StructureDefinition/sfm-medicationdetails" } ], "identifier": [ { "use": "official", "type": { "text": "identifier" }, "value": "ID_DF40453A-DAD1-450D-A58D-0FE411DCDB05" } ], "code": { "coding": [ { "system": "http://xxx/fhir/CodeSystem/FEST", "code": "ID_DF40453A-DAD1-450D-A58D-0FE411DCDB05", "display": "Paracetamol tab 1 g" }, { "system": "http://www.whocc.no/atc", "code": "N02BE01", "display": "Paracetamol" } ] }, "status": "active", "form": { "coding": [ { "system": "urn:oid:2.16.578.1.12.4.1.1.7448", "code": "53", "display": "Tablett" } ] } } }, { "fullUrl": "urn:uuid:8c714f72-0c90-403d-9e80-b08c61f82068", "resource": { "resourceType": "MedicationStatement", "id": "1850837775", "meta": { "profile": [ "http://xxx/fhir/StructureDefinition/sfm-MedicationStatement" ] }, "extension": [ { "extension": [ { "url": "reseptdate", "valueDate": "2022-09-21" }, { "url": "expirationdate", "valueDate": "2023-09-20" }, { "url": "festUpdate", "valueDateTime": "2022-08-25T13:54:02+00:00" }, { "url": "dssn", "valueString": "1 tablett morgen daglig" }, { "url": "amount", "valueQuantity": { "value": 92.0, "unit": "stk" } }, { "url": "reit", "valueString": "3" }, { "url": "itemgroup", "valueCodeableConcept": { "coding": [ { "system": "urn:oid:2.16.578.1.12.4.1.1.7402", "code": "L", "display": "Legemiddel" } ] } }, { "extension": [ { "url": "starttime", "valueDate": "2022-09-21" }, { "extension": [ { "url": "amount", "valueQuantity": { "value": 1.0, "unit": "tablett" } }, { "url": "interval", "valueQuantity": { "value": 1.0, "unit": "Døgn" } }, { "url": "accurate", "valueBoolean": false }, { "url": "timerange", "valueCodeableConcept": { "coding": [ { "system": "urn:oid:2.16.578.1.12.4.1.1.8325", "code": "1", "display": "Morgen" } ] } } ], "url": "repeatingdosage" } ], "url": "ereseptdosing" }, { "extension": [ { "url": "status", "valueCodeableConcept": { "coding": [ { "system": "urn:oid:2.16.578.1.12.4.1.1.7408", "code": "E", "display": "Ekspederbar" } ] } } ], "url": "rfstatus" }, { "url": "typeresept", "valueCodeableConcept": { "coding": [ { "system": "urn:oid:2.16.578.1.12.4.1.1.7491", "code": "E", "display": "Eresept" } ] } } ], "url": "http://xxx/fhir/StructureDefinition/sfm-reseptamendment" }, { "extension": [ { "url": "status", "valueCodeableConcept": { "coding": [ { "system": "http://xxx/fhir/CodeSystem/sfm-medicationstatement-registration-status", "code": "3", "display": "Godkjent" } ] } }, { "url": "type", "valueCodeableConcept": { "coding": [ { "system": "http://xxx/fhir/CodeSystem/sfm-performer-roles", "code": "1", "display": "Forskrevet av" } ] } }, { "url": "provider", "valueReference": { "reference": "urn:uuid:f4c95e15-8e9f-416a-83c7-3a6847d69278", "type": "http://xxx/fhir/StructureDefinition/sfm-Practitioner", "display": "Bjørn Psa Visjon, HPR: 1010038" } }, { "url": "timestamp", "valueDateTime": "2022-09-21T16:10:25.5229768+02:00" } ], "url": "http://xxx/fhir/StructureDefinition/sfm-regInfo" }, { "extension": [ { "url": "genericSubstitutionAccepted", "valueBoolean": true } ], "url": "http://xxx/fhir/StructureDefinition/sfm-generic-substitution" }, { "extension": [ { "url": "nocombination", "valueBoolean": false } ], "url": "http://xxx/fhir/StructureDefinition/sfm-administration" } ], "identifier": [ { "use": "usual", "type": { "text": "ReseptId" }, "value": "1dfa55d7-674d-4fc8-a182-1fbd3b2faa6a" } ], "status": "active", "medicationReference": { "reference": "urn:uuid:4b4de0ae-3f2d-4030-a193-26713cf30260", "type": "http://xxx/fhir/StructureDefinition/sfm-Medication", "display": "Paracetamol tab 1 g" }, "subject": { "reference": "urn:uuid:67bb77c3-55dc-4643-b334-7f95e38bcf2f", "type": "http://xxx/fhir/StructureDefinition/sfm-Patient", "display": "Patient 05129997836" }, "dosage": [ { "extension": [ { "url": "http://xxx/fhir/StructureDefinition/sfm-use", "valueCodeableConcept": { "coding": [ { "system": "urn:oid:2.16.578.1.12.4.1.1.9101", "code": "1", "display": "Fast" } ] } }, { "extension": [ { "url": "text", "valueString": "MOT SMERTER" } ], "url": "http://xxx/fhir/StructureDefinition/sfm-application-area" } ], "sequence": 1, "text": "1 tablett morgen daglig" } ] } } ] } }, { "name": "KJHentetTidspunkt", "valueDateTime": "2022-09-23T09:37:49.55+00:00" }, { "name": "RFHentetTidspunkt", "valueDateTime": "2022-09-23T11:37:49.027+02:00" }, { "name": "KJFeilkode", "valueCodeableConcept": { "coding": [ { "system": "http://xxx/fhir/CodeSystem/sfm-kj-rf-error-code", "code": "0" } ], "text": "OK" } }, { "name": "RFM96Feilkode", "valueCodeableConcept": { "coding": [ { "system": "http://xxx/fhir/CodeSystem/sfm-kj-rf-error-code", "code": "0" } ], "text": "OK" } }, { "name": "RFM912Feilkode", "valueCodeableConcept": { "coding": [ { "system": "http://xxx/fhir/CodeSystem/sfm-kj-rf-error-code", "code": "0" } ], "text": "OK" } }, { "name": "KJHarLegemidler", "valueBoolean": false }, { "name": "KJHarLaste", "valueBoolean": false }, { "name": "RFHarLaste", "valueBoolean": false } ] } The value I am looking for is the "fullUrl", as in urn:uuid:fbb2bd18-a1c3-4f95-8384-d520fba283a5 I tried to use this jsonpath expression: .check(jsonPath("$..[?(#.resourceType=="Bundle")].entry.fullUrl").saveAs("fullUrl")) However it says jsonPath($..[?(#.resourceType=="Bundle")].entry.fullUrl).find. exists, found nothing How can I construct an experssion to obtain the fullUrl?
It's because entry is array. So you have two options how to extract the value. You can get all fullUrl values and then obtain via Gatling EL: jsonPath("$..[?(#.resourceType=='Bundle')].entry..fullUrl").findAll.saveAs("fullUrls") And then just get by index #{fullUrls(0)} (Documentation) Or get by index in the json path: | | ᐯ jsonPath("$..[?(#.resourceType=='Bundle')].entry.[0].fullUrl").findAll.saveAs("fullUrl")
502 bad gateway error after installing WordPress and MySQL database on azure container instance in a virtual network
Following ARM template successfully deployed WordPress and MySQL database on the azure container instance in a virtual network but I'm facing 502 bad gateway error while updating WordPress. Also I'm get link expired when uploading theme of 30MB size. azuredeploy.json { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "vnetName": { "type": "string", "defaultValue": "aci-vnet", "metadata": { "description": "VNet name" } }, "vnetAddressPrefix": { "type": "string", "defaultValue": "10.0.0.0/16", "metadata": { "description": "Address prefix" } }, "subnet1AddressPrefix": { "type": "string", "defaultValue": "10.0.0.0/24", "metadata": { "description": "Subnet prefix for ACI" } }, "subnet1Name": { "type": "string", "defaultValue": "aci-subnet", "metadata": { "description": "Subnet name for ACI" } }, "subnet2AddressPrefix": { "type": "string", "defaultValue": "10.0.1.0/24", "metadata": { "description": "Subnet prefix for application gateway" } }, "subnet2Name": { "type": "string", "defaultValue": "ag-subnet", "metadata": { "description": "Subnet name for application gateway" } }, "mysqlPassword": { "type": "securestring", "metadata": { "description": "MySQL database password" } }, "location": { "type": "string", "defaultValue": "[resourceGroup().location]", "metadata": { "description": "Location for all resources." } } }, "variables": { "storageAccountName": "[uniquestring(resourceGroup().id)]", "storageAccountType": "Standard_LRS", "publicIPAddressName": "publicIp1", "publicIPRef": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]", "networkProfileName": "aci-networkProfile", "interfaceConfigName": "eth0", "interfaceIpConfig": "ipconfigprofile1", "image": "microsoft/azure-cli", "shareContainerGroupName": "createshare-containerinstance", "wordpressContainerGroupName": "wordpress-containerinstance", "mysqlContainerGroupName": "mysql-containerinstance", "wordpressShareName": "wordpress-share", "mysqlShareName": "mysql-share", "cpuCores": "1.0", "memoryInGb": "1.5", "skuName": "Standard_Medium", "capacity": "2", "applicationGatewayName": "applicationGateway1", "subnet2Ref": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnet2Name'))]", "wordpressContainerGroupRef": "[resourceId('Microsoft.ContainerInstance/containerGroups/', variables('wordpresscontainerGroupName'))]", "mysqlContainerGroupRef": "[resourceId('Microsoft.ContainerInstance/containerGroups/', variables('mysqlContainerGroupName'))]" }, "resources": [ { "type": "Microsoft.Storage/storageAccounts", "name": "[variables('storageAccountName')]", "apiVersion": "2019-06-01", "location": "[parameters('location')]", "sku": { "name": "[variables('storageAccountType')]" }, "kind": "Storage", "properties": {} }, { "apiVersion": "2020-05-01", "type": "Microsoft.Network/publicIPAddresses", "name": "[variables('publicIPAddressName')]", "location": "[parameters('location')]", "properties": { "publicIPAllocationMethod": "Dynamic", "dnsSettings": { "domainNameLabel": "[concat('acisite', uniqueString(resourceGroup().id))]" } } }, { "type": "Microsoft.Network/virtualNetworks", "name": "[parameters('vnetName')]", "apiVersion": "2020-05-01", "location": "[parameters('location')]", "properties": { "addressSpace": { "addressPrefixes": [ "[parameters('vnetAddressPrefix')]" ] }, "subnets": [ { "name": "[parameters('subnet1Name')]", "properties": { "addressPrefix": "[parameters('subnet1AddressPrefix')]", "serviceEndpoints": [ { "service": "Microsoft.Storage", "locations": [ "[parameters('location')]" ] } ], "delegations": [ { "name": "DelegationService", "properties": { "serviceName": "Microsoft.ContainerInstance/containerGroups" } } ] } }, { "name": "[parameters('subnet2Name')]", "properties": { "addressPrefix": "[parameters('subnet2AddressPrefix')]" } } ] } }, { "name": "[variables('networkProfileName')]", "type": "Microsoft.Network/networkProfiles", "apiVersion": "2020-05-01", "location": "[parameters('location')]", "dependsOn": [ "[resourceId('Microsoft.Network/virtualNetworks', parameters('vnetName'))]" ], "properties": { "containerNetworkInterfaceConfigurations": [ { "name": "[variables('interfaceConfigName')]", "properties": { "ipConfigurations": [ { "name": "[variables('interfaceIpConfig')]", "properties": { "subnet": { "id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnet1Name'))]" } } } ] } } ] } }, { "name": "[variables('shareContainerGroupName')]", "type": "Microsoft.ContainerInstance/containerGroups", "apiVersion": "2019-12-01", "location": "[parameters('location')]", "dependsOn": [ "[resourceId('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]" ], "properties": { "containers": [ { "name": "[variables('wordpressShareName')]", "properties": { "image": "[variables('image')]", "command": [ "az", "storage", "share", "create", "--name", "[variables('wordpressShareName')]" ], "environmentVariables": [ { "name": "AZURE_STORAGE_KEY", "value": "[listKeys(variables('storageAccountName'),'2017-10-01').keys[0].value]" }, { "name": "AZURE_STORAGE_ACCOUNT", "value": "[variables('storageAccountName')]" } ], "resources": { "requests": { "cpu": "[variables('cpuCores')]", "memoryInGb": "[variables('memoryInGb')]" } } } }, { "name": "[variables('mysqlShareName')]", "properties": { "image": "[variables('image')]", "command": [ "az", "storage", "share", "create", "--name", "[variables('mysqlShareName')]" ], "environmentVariables": [ { "name": "AZURE_STORAGE_KEY", "value": "[listKeys(variables('storageAccountName'),'2017-10-01').keys[0].value]" }, { "name": "AZURE_STORAGE_ACCOUNT", "value": "[variables('storageAccountName')]" } ], "resources": { "requests": { "cpu": "[variables('cpuCores')]", "memoryInGb": "[variables('memoryInGb')]" } } } } ], "restartPolicy": "OnFailure", "osType": "Linux" } }, { "name": "[variables('mysqlContainerGroupName')]", "type": "Microsoft.ContainerInstance/containerGroups", "apiVersion": "2019-12-01", "location": "[parameters('location')]", "dependsOn": [ "[resourceId('Microsoft.ContainerInstance/containerGroups/', variables('shareContainerGroupName'))]", "[resourceId('Microsoft.Network/networkProfiles/', variables('networkProfileName'))]" ], "properties": { "containers": [ { "name": "mysql", "properties": { "image": "mysql:5.6", "ports": [ { "protocol": "Tcp", "port": 3306 } ], "environmentVariables": [ { "name": "MYSQL_ROOT_PASSWORD", "value": "[parameters('mysqlPassword')]" } ], "volumeMounts": [ { "mountPath": "/var/lib/mysql", "name": "mysqlfile" } ], "resources": { "requests": { "cpu": "[variables('cpuCores')]", "memoryInGb": "[variables('memoryInGb')]" } } } } ], "volumes": [ { "azureFile": { "shareName": "[variables('mysqlShareName')]", "storageAccountKey": "[listKeys(variables('storageAccountName'),'2017-10-01').keys[0].value]", "storageAccountName": "[variables('storageAccountName')]" }, "name": "mysqlfile" } ], "networkProfile": { "Id": "[resourceId('Microsoft.Network/networkProfiles', variables('networkProfileName'))]" }, "osType": "Linux" } }, { "name": "[variables('wordpressContainerGroupName')]", "type": "Microsoft.ContainerInstance/containerGroups", "apiVersion": "2019-12-01", "location": "[parameters('location')]", "dependsOn": [ "[resourceId('Microsoft.ContainerInstance/containerGroups/', variables('shareContainerGroupName'))]", "[resourceId('Microsoft.ContainerInstance/containerGroups/', variables('mysqlContainerGroupName'))]" ], "properties": { "containers": [ { "name": "wordpress", "properties": { "image": "wordpress:4.9-apache", "ports": [ { "protocol": "Tcp", "port": 80 } ], "environmentVariables": [ { "name": "WORDPRESS_DB_HOST", "value": "[concat(reference(variables('mysqlContainerGroupRef')).ipAddress.ip, ':3306')]" }, { "name": "WORDPRESS_DB_PASSWORD", "value": "[parameters('mysqlPassword')]" } ], "volumeMounts": [ { "mountPath": "/var/www/html", "name": "wordpressfile" } ], "resources": { "requests": { "cpu": "[variables('cpuCores')]", "memoryInGb": "[variables('memoryInGb')]" } } } } ], "volumes": [ { "azureFile": { "shareName": "[variables('wordpressShareName')]", "storageAccountKey": "[listKeys(variables('storageAccountName'),'2017-10-01').keys[0].value]", "storageAccountName": "[variables('storageAccountName')]" }, "name": "wordpressfile" } ], "networkProfile": { "Id": "[resourceId('Microsoft.Network/networkProfiles', variables('networkProfileName'))]" }, "osType": "Linux" } }, { "apiVersion": "2020-05-01", "name": "[variables('applicationGatewayName')]", "type": "Microsoft.Network/applicationGateways", "location": "[parameters('location')]", "dependsOn": [ "[resourceId('Microsoft.Network/virtualNetworks/', parameters('vnetName'))]", "[resourceId('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]", "[resourceId('Microsoft.ContainerInstance/containerGroups/', variables('wordpressContainerGroupName'))]" ], "properties": { "sku": { "name": "[variables('skuName')]", "tier": "Standard", "capacity": "[variables('capacity')]" }, "gatewayIPConfigurations": [ { "name": "appGatewayIpConfig", "properties": { "subnet": { "id": "[variables('subnet2Ref')]" } } } ], "frontendIPConfigurations": [ { "name": "appGatewayFrontendIP", "properties": { "PublicIPAddress": { "id": "[variables('publicIPRef')]" } } } ], "frontendPorts": [ { "name": "appGatewayFrontendPort", "properties": { "Port": 80 } } ], "backendAddressPools": [ { "name": "appGatewayBackendPool", "properties": { "BackendAddresses": [ { "IpAddress": "[reference(variables('wordpressContainerGroupRef')).ipAddress.ip]" } ] } } ], "backendHttpSettingsCollection": [ { "name": "appGatewayBackendHttpSettings", "properties": { "Port": 80, "Protocol": "Http", "CookieBasedAffinity": "Disabled" } } ], "httpListeners": [ { "name": "appGatewayHttpListener", "properties": { "FrontendIPConfiguration": { "Id": "[resourceId('Microsoft.Network/applicationGateways/frontendIPConfigurations', variables('applicationGatewayName'), 'appGatewayFrontendIP')]" }, "FrontendPort": { "Id": "[resourceId('Microsoft.Network/applicationGateways/frontendPorts', variables('applicationGatewayName'), 'appGatewayFrontendPort')]" }, "Protocol": "Http" } } ], "requestRoutingRules": [ { "Name": "rule1", "properties": { "RuleType": "Basic", "httpListener": { "id": "[resourceId('Microsoft.Network/applicationGateways/httpListeners', variables('applicationGatewayName'), 'appGatewayHttpListener')]" }, "backendAddressPool": { "id": "[resourceId('Microsoft.Network/applicationGateways/backendAddressPools', variables('applicationGatewayName'), 'appGatewayBackendPool')]" }, "backendHttpSettings": { "id": "[resourceId('Microsoft.Network/applicationGateways/backendHttpSettingsCollection', variables('applicationGatewayName'), 'appGatewayBackendHttpSettings')]" } } } ] } } ], "outputs": { "SiteFQDN": { "type": "string", "value": "[reference(variables('publicIPRef')).dnsSettings.fqdn]" } } } azuredeploy.parameters.json { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", "contentVersion": "1.0.0.0", "parameters": { "mysqlPassword": { "value": "GEN-PASSWORD" } } } Solution overview and deployed resources The following resources are deployed as part of the solution Azure Container Instance: Azure Container Instance to host the WordPress site. Azure Container Instance: Azure Container Instance to host the MySQL database. Azure Container Instance: A run-once Azure Container Instance, where the az-cli is executed to create the file shares Storage Account: Storage account for the file shares to store the WordPress site content and MySQL database. File share: Azure File shares to store WordPress site content and MySQL database. Application gateway: Application gateway for WordPress site. It exposes public network access to WordPress site in VNet. Virtual network: Virtual network for WordPress site, MySQL database, Application gateway. One click deploy to Azure Click here to deploy to Azure
How do I pass RegistrationKey to Azure DSC extenstion
I have template below which errors out during deployment with error below. Samples on documentation page seems to be erroneous and don't even compile. "message": "VM has reported a failure when processing extension 'Microsoft.Powershell.DSC'. Error message: \"The DSC Extension failed to install: Invalid type for parameter RegistrationKey of type PSCredential.\nMore information about the failure can be found in the logs located under 'C:\WindowsAzure\Logs\Plugins\Microsoft.Powershell.DSC\2.74.0.0' on the VM.\nTo retry install, please remove the extension from the VM first. \"." Template { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "resources": [ { "name": "[parameters('swarmmanager1Name')]", "type": "Microsoft.Compute/virtualMachines", "location": "[resourceGroup().location]", "apiVersion": "2015-06-15", "tags": { "displayName": "swarmmanager1" }, "properties": { "hardwareProfile": { "vmSize": "[parameters('swarmmanager1VmSize')]" }, "licenseType": "[parameters('LicenseType')]", "osProfile": { "computerName": "[parameters('swarmmanager1Name')]", "adminUsername": "[parameters('adminUsername')]", "adminPassword": "[parameters('adminPassword')]" }, "storageProfile": { "imageReference": { "publisher": "[parameters('swarmmanager1ImagePublisher')]", "offer": "[parameters('swarmmanager1ImageOffer')]", "sku": "[parameters('windowsOSVersion')]", "version": "latest" }, "osDisk": { "name": "swarmmanager1OSDisk", "vhd": { "uri": "[concat(reference(resourceId('Microsoft.Storage/storageAccounts', parameters('dockerswarmstorageaccountName')), '2016-01-01').primaryEndpoints.blob, parameters('swarmmanager1StorageAccountContainerName'), '/', parameters('swarmmanager1OSDiskName'), '.vhd')]" }, "caching": "ReadWrite", "createOption": "FromImage" } }, "networkProfile": { "networkInterfaces": [ { "id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('swarmmanager1NicName'))]" } ] } }, "resources": [ { "name": "Microsoft.Powershell.DSC", "type": "extensions", "location": "[resourceGroup().location]", "apiVersion": "2015-06-15", "dependsOn": [ "[resourceId('Microsoft.Compute/virtualMachines', parameters('swarmmanager1Name'))]" ], "tags": { "displayName": "DSC" }, "properties": { "publisher": "Microsoft.Powershell", "typeHandlerVersion": "2.26", "type": "DSC", "autoUpgradeMinorVersion": true, "forceUpdateTag": "[parameters('DSCExtensionManagerTagVersion')]", "settings": { "wmfVersion": "latest", "configurationArguments": { //"RegistrationKey": { // "UserName": "PLACEHOLDER_DONOTUSE", // "Password": "PrivateSettingsRef:registrationKeyPrivate" // }, "RegistrationKey": "[parameters('RegistrationKey')]", "RegistrationUrl": "[parameters('registrationUrl')]", "NodeConfigurationName": "SwarmManager.localhost", "RebootNodeIfNeeded": true } }, "protectedSettings": { "Items": { "registrationKeyPrivate": "[parameters('RegistrationKey')]" } } } } ] }, { "name": "[parameters('dockerswarmstorageaccountName')]", "type": "Microsoft.Storage/storageAccounts", "location": "[resourceGroup().location]", "apiVersion": "2016-01-01", "sku": { "name": "[parameters('dockerswarmstorageaccountType')]" }, "dependsOn": [], "tags": { "displayName": "dockerswarmstorageaccount" }, "kind": "Storage" }, { "name": "[parameters('swarmmanager1NicName')]", "type": "Microsoft.Network/networkInterfaces", "location": "[resourceGroup().location]", "apiVersion": "2016-03-30", "tags": { "displayName": "swarmmanager1Nic" }, "properties": { "ipConfigurations": [ { "name": "ipconfig1", "properties": { "privateIPAllocationMethod": "Dynamic", "subnet": { "id": "[parameters('swarmmanager1SubnetRef')]" }, "publicIPAddress": { "id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('swarmmanagerpublicIPName'))]" } } } ] } }, { "apiVersion": "2016-03-30", "dependsOn": [], "location": "[resourceGroup().location]", "name": "[parameters('swarmmanagerpublicIPName')]", "properties": { "publicIPAllocationMethod": "Dynamic", "dnsSettings": { "domainNameLabel": "[parameters('swarmmanagerpublicIPDnsName')]" } }, "tags": { "displayName": "swarmmanagerpublicIP" }, "type": "Microsoft.Network/publicIPAddresses" } ], "parameters": { "swarmmanager1Name": { "type": "string" }, "swarmmanager1VmSize": { "type": "string" }, "adminUsername": { "type": "string" }, "adminPassword": { "type": "securestring" }, "dockerswarmstorageaccountName": { "type": "string" }, "dockerswarmstorageaccountType": { "type": "string" }, "swarmmanager1NicName": { "type": "string" }, "swarmmanagerpublicIPName": { "type": "string" }, "swarmmanager1SubnetRef": { "type": "string" }, "swarmmanager1ImagePublisher": { "type": "string" }, "swarmmanager1ImageOffer": { "type": "string" }, "windowsOSVersion": { "type": "string" }, "swarmmanager1StorageAccountContainerName": { "type": "string" }, "swarmmanager1OSDiskName": { "type": "string" }, "swarmmanagerpublicIPDnsName": { "type": "string" }, "DSCConfigurationURL": { "type": "string" }, "DSCExtensionManagerTagVersion": { "type": "string" }, "RegistrationKey": { "type": "securestring" }, "RegistrationUrl": { "type": "string" }, "LicenseType": {"type": "string"} }, "outputs": { "returnedIPAddress": { "type": "string", "value": "[reference(parameters('swarmmanager1NicName')).ipConfigurations[0].properties.privateIPAddress]" } } }
if you want to pass in ps credentials do this: "protectedSettings": { "configurationArguments": { "RegistrationKey": { "userName": "whatever", "password": "[parameters('RegistrationKey')]" } } }
ElasticSearch indexing issue ,failed to parse timestamp
i am new to ELK . i have created index in Elasticsearch { "logstash": { "aliases": {}, "mappings": { "log": { "dynamic_templates": [ { "message_field": { "path_match": "message", "match_mapping_type": "string", "mapping": { "norms": false, "type": "text" } } }, { "string_fields": { "match": "*", "match_mapping_type": "string", "mapping": { "fields": { "keyword": { "type": "keyword" } }, "norms": false, "type": "text" } } } ], "properties": { "#timestamp": { "type": "date" }, "#version": { "type": "keyword", "include_in_all": false }, "activity": { "type": "text", "norms": false, "fields": { "keyword": { "type": "keyword" } } }, "beat": { "properties": { "hostname": { "type": "text", "norms": false, "fields": { "keyword": { "type": "keyword" } } }, "name": { "type": "text", "norms": false, "fields": { "keyword": { "type": "keyword" } } }, "version": { "type": "text", "norms": false, "fields": { "keyword": { "type": "keyword" } } } } }, "filename": { "type": "text", "norms": false, "fields": { "keyword": { "type": "keyword" } } }, "host": { "type": "text", "norms": false, "fields": { "keyword": { "type": "keyword" } } }, "input_type": { "type": "text", "norms": false, "fields": { "keyword": { "type": "keyword" } } }, "message": { "type": "text", "norms": false }, "offset": { "type": "long" }, "source": { "type": "text", "norms": false, "fields": { "keyword": { "type": "keyword" } } }, "tags": { "type": "text", "norms": false, "fields": { "keyword": { "type": "keyword" } } }, "timestamp": { "type": "date", "include_in_all": false, "format": "YYYY-MM-DD HH:mm:ss.SSS" }, "type": { "type": "text", "norms": false, "fields": { "keyword": { "type": "keyword" } } }, "user": { "type": "text", "norms": false, "fields": { "keyword": { "type": "keyword" } } } } } }, "settings": { "index": { "creation_date": "1488805244467", "number_of_shards": "1", "number_of_replicas": "0", "uuid": "5ijhh193Tr6y_hxaQrW9kg", "version": { "created": "5020199" }, "provided_name": "logstash" } } } } Below is my logstash configuration input{ beats{ port=>5044 } }filter{ grok{ match=>{"message" => "\[%{TIMESTAMP_ISO8601:timestamp}\] ALL AUDIT: User \[%{GREEDYDATA:user}\] is %{GREEDYDATA:activity} \[%{GREEDYDATA:filename}\] for transfer."} } }output{ elasticsearch{ hosts=>"localhost:9200" index=> "logstash" } Sample Data [2017-03-05 12:37:21.465] ALL AUDIT: User [user1] is opening file [filename1] for transfer. but when i am loading file through filebeat > logstash > elasticsearch in elasticsearch i am getting below error org.elasticsearch.index.mapper.MapperParsingException: failed to parse [timestamp] Caused by: java.lang.IllegalArgumentException: Invalid format: "2017-03-05T12:36:33.606" is malformed at "12:36:33.606" at org.joda.time.format.DateTimeParserBucket.doParseMillis(DateTimeParserBucket.java:187) ~[joda-time-2.9.5.jar:2.9.5] Please help , what timestamp format should i configure ?
In your timestamp mapping you indicate the format as "format": "YYYY-MM-DD HH:mm:ss.SSS" Here the format you are sending through beats is not the same, check: 2017-03-05T12:36:33.606 That's why Elastic is complaining about the format. Your format should be: "YYYY-MM-DD'T'HH:mm:ss.SSS" (notice the capital T) See the documentation for more details: https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html
Deploying a logic app using ARM templates/powershell
How can I Deploy a logic app that calls a SQL DB stored procedure? I've tried the following action. "actions": { "Execute_stored_procedure": { "conditions": [ ], "inputs": { "body": null, "host": { "api": { "runtimeUrl": "https://logic-apis-northcentralus.azure-apim.net/apim/sql" }, "connection": { "name": "<sql connection string>" } }, "method": "post", "path": "/datasets/default/procedures/#{encodeURIComponent(encodeURIComponent(string('<stored-procedure-name>')))}" }, "type": "apiconnection" } } When I deploy this template, the logic app get's created but it's throwing errors or the SQL Connection action is not showing up on the design view. What am I doing wrong here? Is Logic App for calling SQL Stored Proc supported by arm currently?
Here is a sample template for LogicApp ARM template + 'connections' resource https://blogs.msdn.microsoft.com/logicapps/2016/02/23/deploying-in-the-logic-apps-preview-refresh/ https://github.com/jeffhollan/logicapps-deployments/blob/master/ftp_to_blob.json
I've finally figured this out from #TusharJ links and I'm posting the template I've used below to configure a LogicApp that calls a SQL DB stored procedure in specific intervals. resources: [ { "type": "Microsoft.Web/connections", "apiVersion": "2015-08-01-preview", "location": "[resourceGroup().location]", "name": "sqlconnector", "properties": { "api": { "id": "[concat('subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', resourceGroup().location, '/managedApis/sql')]" }, "displayName": "sqlconnector", "parameterValues": { "sqlConnectionString": "<sql db connection string>" } } }, { "type": "Microsoft.Logic/workflows", "apiVersion": "2015-08-01-preview", "name": "[parameters('logicAppName')]", "location": "[resourceGroup().location]", "tags": { "displayName": "LogicApp" }, "properties": { "sku": { "name": "[parameters('workflowSkuName')]", "plan": { "id": "[concat(resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('svcPlanName'))]" } }, "definition": { "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2015-08-01-preview/workflowdefinition.json#", "contentVersion": "1.0.0.0", "parameters": { "$connections": { "defaultValue": { }, "type": "Object" } }, "triggers": { "recurrence": { "type": "recurrence", "recurrence": { "frequency": "Hour", "interval": 1 } } }, "actions": { "Execute_stored_procedure": { "conditions": [ ], "inputs": { "body": null, "host": { "api": { "runtimeUrl": "[concat('https://logic-apis-', resourceGroup().location, '.azure-apim.net/apim/sql')]" }, "connection": { "name": "#parameters('$connections')['sql']['connectionId']" } }, "method": "post", "path": "/datasets/default/procedures/#{encodeURIComponent(encodeURIComponent(string('[dbo].[<Stored Proc Name>]')))}" }, "type": "apiconnection" } }, "outputs": { } }, "parameters": { "$connections": { "value": { "sql": { "connectionId": "[resourceId('Microsoft.Web/connections', 'sqlconnector')]", "connectionName": "sqlconnector", "id": "[reference(concat('Microsoft.Web/connections/', 'sqlconnector'), '2015-08-01-preview').api.id]" } } } } } } ]
Things may have changed in the API since the previous answer was given. Here is what worked for me as of 10/2016. Note: I used parameters (definitions not shown) for many of the variables: { "type": "Microsoft.Web/connections", "apiVersion": "2015-08-01-preview", "location": "[parameters('location')]", "name": "[variables('sql_conn_name')]", "properties": { "api": { "id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', resourceGroup().location, '/managedApis/sql')]" }, "displayName": "sql_connection", "parameterValues": { "server": "[concat(variables('dbserver_unique_name'), '.database.windows.net')]", "database": "[parameters('databases_name')]", "authType": "windows", "username": "[parameters('databases_admin_user')]", "password": "[parameters('databases_admin_password')]" } } }, { "type": "Microsoft.Logic/workflows", "name": "[variables('logic_app_name')]", "apiVersion": "2016-06-01", "location": "[parameters('location')]", "properties": { "state": "Enabled", "definition": { "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", "contentVersion": "1.0.0.0", "parameters": { "$connections": { "defaultValue": { }, "type": "Object" } }, "triggers": { "Recurrence": { "recurrence": { "frequency": "Hour", "interval": 1 }, "type": "Recurrence" } }, "actions": { "Execute_stored_procedure": { "runAfter": { }, "type": "ApiConnection", "inputs": { "body": { "timeoffset": "-4" }, "host": { "api": { "runtimeUrl": "[concat('https://logic-apis-', parameters('location'), '.azure-apim.net/apim/sql')]" }, "connection": { "name": "#parameters('$connections')['sql']['connectionId']" } }, "method": "post", "path": "/datasets/default/procedures/#{encodeURIComponent(encodeURIComponent('[dbo].[usp_UpdateHourlyOos]'))}" } } }, "outputs": { } }, "parameters": { "$connections": { "value": { "sql": { "connectionId": "[concat(subscription().id, '/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Web/connections/', variables('sql_conn_name'))]", "connectionName": "[variables('sql_conn_name')]", "id": "[concat(subscription().id,'/providers/Microsoft.Web/locations/', resourceGroup().location, '/managedApis/sql')]" } } } } }, "resources": [ ], "dependsOn": [ "[resourceId('Microsoft.Web/connections', variables('sql_conn_name'))]" ] }